12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- .. This is a autogemerated documentation from python docstrings. It was generated using DStrings2Doc.
- .. module:: multiWidget
- .. _multiWidget:
- Module multiWidget
- ==================
- This is the container widget for multiple subwindows
- .. py:class:: WidgetTypeError(Exception)
- Simple error that describes when a wrong window type gets added
- .. py:class:: MDIArea(kcgw.KCGWidgets)
- The MDI Area used by Multiwidget
- .. py:method:: __init__(self, parent)
- .. py:method:: newWidget(self, widget, name, unique_id, widget_type, minSize=False)
- Add a new Widget to the MDIArea
- :param widget: (subclass of QMdiSubWindow) The widget to show
- :param name: (str) name of the window
- :param unique_id: (int) unique id of the window
- :param widget_type: (int) the type of this window
- :param minSize: (bool) whether to shrink the window to minimum size upon creation
- .. py:class:: MultiWidget(QtGui.QWidget)
- The Widget used as Multiwidget. This is the main View during operation with KCG.
- .. py:method:: __init__(self)
- .. py:method:: addToolbarButton(self, icon, text, target, shortcut=None)
- Add a toolbar button.
- :param icon: (QIcon) The icon to show on the toolbar button
- :param text: (str) tooltip for this button
- :param target: (callable) The function to call upon press on button
- :param shortcut: (str) Keyboard shortcut to call target
- .. py:method:: evaluate_registered_widgets(self)
- Evaluate all the registered widgets and add a toolbar button for those
- .. py:method:: evaluate_registered_widget_functions(self)
- Evaluate the functions that are registered
- Those are in general functions that have to be called after widgets are created
|