12345678910111213141516171819202122232425262728293031 |
- Multi Widget Module
- ===================
- .. module:: multiWidget
- This module containts the definition of the MultiWidget Area and Toolbar
- .. class:: MDIArea
- This class is the center of the MultiWidget. An Instance of this class is accessible throughout the whole Gui after
- importing ``base.kcgwidget`` as ``base.kcgwidget.area``
- .. _newWidget:
- .. py:method:: newWidget(self, widget, name, unique_id, widget_type[, minSize=False])
- This function adds the provided widget to the MultiWidget Area. It also handles all the things necessary to cleanly
- close the widget from the viewpoint of the Area.
- :param subclass of KCGWidgets widget: The widget that is to be added as subwindow
- :param str name: The name of the widget
- :param int unique_id: the unique id of the widget that is unique throughout the whole Gui
- :param int widget_type: the type of the widget
- :param bool minSize: Whether the window has a fixed minimum size or not
- Adding a Toolbar Button for a new Widget
- ''''''''''''''''''''''''''''''''''''''''
- To add a Toolbar button for a new Widget you have to register the widget with the kcgwidget module:
- See :ref:`kcgwidget_register_widget`
|