MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / FormComboWidget

Class FormComboWidget

lib/matplotlib/backends/qt_editor/_formlayout.py:360–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358
359
360class FormComboWidget(QtWidgets.QWidget):
361 update_buttons = QtCore.Signal()
362
363 def __init__(self, datalist, comment="", parent=None):
364 super().__init__(parent)
365 layout = QtWidgets.QVBoxLayout()
366 self.setLayout(layout)
367 self.combobox = QtWidgets.QComboBox()
368 layout.addWidget(self.combobox)
369
370 self.stackwidget = QtWidgets.QStackedWidget(self)
371 layout.addWidget(self.stackwidget)
372 self.combobox.currentIndexChanged.connect(
373 self.stackwidget.setCurrentIndex)
374
375 self.widgetlist = []
376 for data, title, comment in datalist:
377 self.combobox.addItem(title)
378 widget = FormWidget(data, comment=comment, parent=self)
379 self.stackwidget.addWidget(widget)
380 self.widgetlist.append(widget)
381
382 def setup(self):
383 for widget in self.widgetlist:
384 widget.setup()
385
386 def get(self):
387 return [widget.get() for widget in self.widgetlist]
388
389
390class FormTabWidget(QtWidgets.QWidget):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…