We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae0457 commit 815835fCopy full SHA for 815835f
qt-cli/src/assets/templates/projects/python/qwidget/main.py
@@ -6,7 +6,7 @@
6
# Important:
7
# You need to run the following command to generate the ui_form.py file
8
# pyside6-uic form.ui -o ui_form.py
9
-from ui_form import Ui_Widget
+from ui_form import Ui_{{ .className }}
10
{{- end }}
11
12
@@ -15,13 +15,13 @@ def __init__(self, parent=None):
15
super().__init__(parent)
16
17
{{- if .useForm }}
18
- self.ui = Ui_Widget()
+ self.ui = Ui_{{ .className }}()
19
self.ui.setupUi(self)
20
21
22
23
if __name__ == "__main__":
24
app = QApplication(sys.argv)
25
- widget = Widget()
+ widget = {{ .className }}()
26
widget.show()
27
sys.exit(app.exec())
0 commit comments