@@ -1835,9 +1835,7 @@ def show_dialog(self, title, bundle, widget_class, *args, **kwargs):
1835
1835
The dialog will be created with a standard Toolkit window title bar where
1836
1836
the title will be displayed.
1837
1837
1838
- .. seealso::
1839
- - :ref:`qdialog-exit-codes`
1840
- - :ref:`hiding-toolkit-title-bar`
1838
+ .. seealso:: :ref:`hiding-toolkit-title-bar`
1841
1839
1842
1840
**Notes for engine developers**
1843
1841
@@ -1907,7 +1905,9 @@ def show_modal(self, title, bundle, widget_class, *args, **kwargs):
1907
1905
the title will be displayed.
1908
1906
1909
1907
.. seealso::
1908
+
1910
1909
- :ref:`qdialog-exit-codes`
1910
+
1911
1911
- :ref:`hiding-toolkit-title-bar`
1912
1912
1913
1913
:param title: The title of the window
@@ -1918,10 +1918,9 @@ def show_modal(self, title, bundle, widget_class, *args, **kwargs):
1918
1918
Additional parameters specified will be passed through to the
1919
1919
``widget_class`` constructor.
1920
1920
1921
- :returns: Tuple of :attr:`QDialog.DialogCode
1922
- <PySide.QtGui.PySide.QtGui.QDialog.DialogCode>` and and the created
1923
- ``widget_class`` instance
1924
- :rtype: (:class:`int`, :class:`PySide.QtGui.QWidget`)
1921
+ :returns: :attr:`QDialog.DialogCode <PySide.QtGui.PySide.QtGui.QDialog.DialogCode>`
1922
+ and the created ``widget_class`` instance
1923
+ :rtype: tuple(int, PySide.QtGui.QWidget)
1925
1924
"""
1926
1925
if not self .has_ui :
1927
1926
self .log_error (
@@ -1954,24 +1953,19 @@ def show_panel(self, panel_id, title, bundle, widget_class, *args, **kwargs):
1954
1953
The dialog will be created with a standard Toolkit window title bar where
1955
1954
the title will be displayed.
1956
1955
1957
- .. note:: In some cases, it is necessary to hide the standard Toolkit title
1958
- bar. You can do this by adding a property to the widget class you are
1959
- displaying::
1960
-
1961
- @property
1962
- def hide_tk_title_bar(self):
1963
- "Tell the system to not show the standard toolkit toolbar"
1964
- return True
1956
+ .. seealso:: :ref:`hiding-toolkit-title-bar`
1965
1957
1966
1958
:param panel_id: Unique identifier for the panel, as obtained by register_panel().
1967
1959
:param title: The title of the panel
1968
1960
:param bundle: The app, engine or framework object that is associated with this window
1969
1961
:param widget_class: The class of the UI to be constructed. This must derive from QWidget.
1970
1962
:type widget_class: :class:`PySide.QtGui.QWidget`
1971
1963
1972
- Additional parameters specified will be passed through to the widget_class constructor.
1964
+ Additional parameters specified will be passed through to the
1965
+ ``widget_class`` constructor.
1973
1966
1974
- :returns: the created widget_class instance
1967
+ :returns: The created ``widget_class`` instance
1968
+ :rtype: PySide.QtGui.QWidget
1975
1969
"""
1976
1970
# engines implementing panel support should subclass this method.
1977
1971
# the core implementation falls back on a modeless window.
0 commit comments