@@ -220,10 +223,10 @@ display it in the right side bar:
.. method:: AddWidget(pos, widget[, hidden])
Display a Widget in a PanelBar.
With Method you can add a widget to the given PanelBar. The widget which finally will be added to the gui will be created from the WidgetRegistry.
With this method you can add a widget to the given PanelBar. The widget which finally will be added to the gui will be created from the WidgetRegistry.
If the WidgetPool does not know the class name of the given widget or if there are no instances left, nothing will happen.
:param pos: Indicates which PanelBar is affected
:param pos: Indicates which PanelBar is affected.
:type pos: :data:`PanelPosition`
:param widget: the widget will not directly added to the PanelBar. The class_name will be used to identify the widget in the WidgetRegistry which will return a fresh instance of this class.
:type arg3: :class:`int`
...
...
@@ -235,7 +238,7 @@ display it in the right side bar:
Display a Widget in a PanelBar
Same as :meth:`AddWidget`
:param pos: Indicates which PanelBar is affected
:param pos: Indicates which PanelBar is affected.
:type pos: :class:`PanelPosition`
:param class_name: the class_name of the widget you would like to add.
:type class_name: :class:`str`
...
...
@@ -265,7 +268,7 @@ display it in the right side bar:
.. method:: GetMenu()
The GetMenu method returns a QMenu reference, which contains various actions. The action states will be updated automatically.
Returns a reference to a QMenu which can be used for example in a QMenuBar
Returns a reference to a QMenu which can be used for example in a QMenuBar.
:rtype: :class:`QObject`
...
...
@@ -300,11 +303,11 @@ Adding an new Menupoint
^^^^^^^^^^^^^^^^^^^^^^^
It is really straightforward to add a custom menupoint. Since the menubar is
exported to Python it is even easier to create such e menupoint. The following example
describes how this is done within python and PyQt:
describes how this is done within Python and PyQt: