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

Class FormTabWidget

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

Source from the content-addressed store, hash-verified

388
389
390class FormTabWidget(QtWidgets.QWidget):
391 update_buttons = QtCore.Signal()
392
393 def __init__(self, datalist, comment="", parent=None):
394 super().__init__(parent)
395 layout = QtWidgets.QVBoxLayout()
396 self.tabwidget = QtWidgets.QTabWidget()
397 layout.addWidget(self.tabwidget)
398 layout.setContentsMargins(0, 0, 0, 0)
399 self.setLayout(layout)
400 self.widgetlist = []
401 for data, title, comment in datalist:
402 if len(data[0]) == 3:
403 widget = FormComboWidget(data, comment=comment, parent=self)
404 else:
405 widget = FormWidget(data, with_margin=True, comment=comment,
406 parent=self)
407 index = self.tabwidget.addTab(widget, title)
408 self.tabwidget.setTabToolTip(index, comment)
409 self.widgetlist.append(widget)
410
411 def setup(self):
412 for widget in self.widgetlist:
413 widget.setup()
414
415 def get(self):
416 return [widget.get() for widget in self.widgetlist]
417
418
419class FormDialog(QtWidgets.QDialog):

Callers 1

__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…