eric6/CodeTemplates/impl_pyside.py2.tmpl

Sun, 02 Feb 2020 11:04:32 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 02 Feb 2020 11:04:32 +0100
changeset 7380
c99320e859ca
parent 6942
2602857055c5
permissions
-rw-r--r--

Fixed an issue related to showing the application name in the menu bar of Gnome desktop under Wayland.

1139
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
1 # -*- coding: utf-8 -*-
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
2
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
3 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
4 Module implementing $CLASSNAME$.
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
5 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
6
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
7 from PySide.QtCore import Slot
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
8 from PySide.QtGui import $SUPERCLASS$
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
9
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
10 from .Ui_$FORMFILE$ import Ui_$FORMCLASS$
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
11
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
12
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
13 class $CLASSNAME$($SUPERCLASS$, Ui_$FORMCLASS$):
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
14 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
15 Class documentation goes here.
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
16 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
17 def __init__(self, parent=None):
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
18 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
19 Constructor
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
20
4484
5c9952e29895 Changed the dialog code generation templates to support the updated source documentation system.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1139
diff changeset
21 @param parent reference to the parent widget
5c9952e29895 Changed the dialog code generation templates to support the updated source documentation system.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 1139
diff changeset
22 @type QWidget
1139
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
23 """
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
24 $SUPERCLASS$.__init__(self, parent)
b18376d58832 Added dialog support for PySide.
detlev@die-offenbachs.de
parents:
diff changeset
25 self.setupUi(self)

eric ide

mercurial