|
1 | | -# -*- coding: utf-8 -*- |
2 | | - |
3 | 1 | # Form implementation generated from reading ui file 'ui/main_window.ui' |
4 | 2 | # |
5 | | -# Created by: PyQt5 UI code generator 5.15.1 |
| 3 | +# Created by: PyQt6 UI code generator 6.11.0 |
6 | 4 | # |
7 | | -# WARNING: Any manual changes made to this file will be lost when pyuic5 is |
| 5 | +# WARNING: Any manual changes made to this file will be lost when pyuic6 is |
8 | 6 | # run again. Do not edit this file unless you know what you are doing. |
9 | 7 |
|
10 | 8 |
|
11 | | -from PyQt5 import QtCore, QtGui, QtWidgets |
| 9 | +from PyQt6 import QtCore, QtGui, QtWidgets |
12 | 10 |
|
13 | 11 |
|
14 | 12 | class Ui_MainWindow(object): |
15 | 13 | def setupUi(self, MainWindow): |
16 | 14 | MainWindow.setObjectName("MainWindow") |
17 | 15 | MainWindow.resize(413, 299) |
18 | | - self.centralwidget = QtWidgets.QWidget(MainWindow) |
| 16 | + self.centralwidget = QtWidgets.QWidget(parent=MainWindow) |
19 | 17 | self.centralwidget.setObjectName("centralwidget") |
20 | 18 | self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget) |
21 | 19 | self.verticalLayout.setContentsMargins(1, 1, 1, 1) |
22 | 20 | self.verticalLayout.setObjectName("verticalLayout") |
23 | | - self.textEdit = QtWidgets.QTextEdit(self.centralwidget) |
| 21 | + self.textEdit = QtWidgets.QTextEdit(parent=self.centralwidget) |
24 | 22 | self.textEdit.setObjectName("textEdit") |
25 | 23 | self.verticalLayout.addWidget(self.textEdit) |
26 | 24 | MainWindow.setCentralWidget(self.centralwidget) |
27 | | - self.menubar = QtWidgets.QMenuBar(MainWindow) |
| 25 | + self.menubar = QtWidgets.QMenuBar(parent=MainWindow) |
28 | 26 | self.menubar.setGeometry(QtCore.QRect(0, 0, 413, 20)) |
29 | 27 | self.menubar.setObjectName("menubar") |
30 | | - self.menu_File = QtWidgets.QMenu(self.menubar) |
| 28 | + self.menu_File = QtWidgets.QMenu(parent=self.menubar) |
31 | 29 | self.menu_File.setObjectName("menu_File") |
32 | | - self.menuOpen_Recent = QtWidgets.QMenu(self.menu_File) |
| 30 | + self.menuOpen_Recent = QtWidgets.QMenu(parent=self.menu_File) |
33 | 31 | self.menuOpen_Recent.setObjectName("menuOpen_Recent") |
34 | | - self.menu_Edit = QtWidgets.QMenu(self.menubar) |
| 32 | + self.menu_Edit = QtWidgets.QMenu(parent=self.menubar) |
35 | 33 | self.menu_Edit.setObjectName("menu_Edit") |
36 | | - self.menu_Help = QtWidgets.QMenu(self.menubar) |
| 34 | + self.menu_Help = QtWidgets.QMenu(parent=self.menubar) |
37 | 35 | self.menu_Help.setObjectName("menu_Help") |
38 | 36 | MainWindow.setMenuBar(self.menubar) |
39 | | - self.statusbar = QtWidgets.QStatusBar(MainWindow) |
| 37 | + self.statusbar = QtWidgets.QStatusBar(parent=MainWindow) |
40 | 38 | self.statusbar.setObjectName("statusbar") |
41 | 39 | MainWindow.setStatusBar(self.statusbar) |
42 | | - self.toolBar = QtWidgets.QToolBar(MainWindow) |
| 40 | + self.toolBar = QtWidgets.QToolBar(parent=MainWindow) |
43 | 41 | self.toolBar.setObjectName("toolBar") |
44 | | - MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) |
45 | | - self.action_New = QtWidgets.QAction(MainWindow) |
| 42 | + MainWindow.addToolBar(QtCore.Qt.ToolBarArea.TopToolBarArea, self.toolBar) |
| 43 | + self.action_New = QtGui.QAction(parent=MainWindow) |
46 | 44 | icon = QtGui.QIcon() |
47 | | - icon.addPixmap( |
48 | | - QtGui.QPixmap("ui/resources/file-new.png"), |
49 | | - QtGui.QIcon.Normal, |
50 | | - QtGui.QIcon.Off, |
51 | | - ) |
| 45 | + icon.addPixmap(QtGui.QPixmap("ui/resources/file-new.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
52 | 46 | self.action_New.setIcon(icon) |
53 | 47 | self.action_New.setObjectName("action_New") |
54 | | - self.action_Open = QtWidgets.QAction(MainWindow) |
| 48 | + self.action_Open = QtGui.QAction(parent=MainWindow) |
55 | 49 | icon1 = QtGui.QIcon() |
56 | | - icon1.addPixmap( |
57 | | - QtGui.QPixmap("ui/resources/file-open.png"), |
58 | | - QtGui.QIcon.Normal, |
59 | | - QtGui.QIcon.Off, |
60 | | - ) |
| 50 | + icon1.addPixmap(QtGui.QPixmap("ui/resources/file-open.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
61 | 51 | self.action_Open.setIcon(icon1) |
62 | 52 | self.action_Open.setObjectName("action_Open") |
63 | | - self.action_Save = QtWidgets.QAction(MainWindow) |
| 53 | + self.action_Save = QtGui.QAction(parent=MainWindow) |
64 | 54 | icon2 = QtGui.QIcon() |
65 | | - icon2.addPixmap( |
66 | | - QtGui.QPixmap("ui/resources/file-save.png"), |
67 | | - QtGui.QIcon.Normal, |
68 | | - QtGui.QIcon.Off, |
69 | | - ) |
| 55 | + icon2.addPixmap(QtGui.QPixmap("ui/resources/file-save.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
70 | 56 | self.action_Save.setIcon(icon2) |
71 | 57 | self.action_Save.setObjectName("action_Save") |
72 | | - self.action_Exit = QtWidgets.QAction(MainWindow) |
| 58 | + self.action_Exit = QtGui.QAction(parent=MainWindow) |
73 | 59 | icon3 = QtGui.QIcon() |
74 | | - icon3.addPixmap( |
75 | | - QtGui.QPixmap("ui/resources/file-exit.png"), |
76 | | - QtGui.QIcon.Normal, |
77 | | - QtGui.QIcon.Off, |
78 | | - ) |
| 60 | + icon3.addPixmap(QtGui.QPixmap("ui/resources/file-exit.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
79 | 61 | self.action_Exit.setIcon(icon3) |
80 | 62 | self.action_Exit.setObjectName("action_Exit") |
81 | | - self.action_Copy = QtWidgets.QAction(MainWindow) |
| 63 | + self.action_Copy = QtGui.QAction(parent=MainWindow) |
82 | 64 | icon4 = QtGui.QIcon() |
83 | | - icon4.addPixmap( |
84 | | - QtGui.QPixmap("ui/resources/edit-copy.png"), |
85 | | - QtGui.QIcon.Normal, |
86 | | - QtGui.QIcon.Off, |
87 | | - ) |
| 65 | + icon4.addPixmap(QtGui.QPixmap("ui/resources/edit-copy.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
88 | 66 | self.action_Copy.setIcon(icon4) |
89 | 67 | self.action_Copy.setObjectName("action_Copy") |
90 | | - self.action_Paste = QtWidgets.QAction(MainWindow) |
| 68 | + self.action_Paste = QtGui.QAction(parent=MainWindow) |
91 | 69 | icon5 = QtGui.QIcon() |
92 | | - icon5.addPixmap( |
93 | | - QtGui.QPixmap("ui/resources/edit-paste.png"), |
94 | | - QtGui.QIcon.Normal, |
95 | | - QtGui.QIcon.Off, |
96 | | - ) |
| 70 | + icon5.addPixmap(QtGui.QPixmap("ui/resources/edit-paste.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
97 | 71 | self.action_Paste.setIcon(icon5) |
98 | 72 | self.action_Paste.setObjectName("action_Paste") |
99 | | - self.action_Cut = QtWidgets.QAction(MainWindow) |
| 73 | + self.action_Cut = QtGui.QAction(parent=MainWindow) |
100 | 74 | icon6 = QtGui.QIcon() |
101 | | - icon6.addPixmap( |
102 | | - QtGui.QPixmap("ui/resources/edit-cut.png"), |
103 | | - QtGui.QIcon.Normal, |
104 | | - QtGui.QIcon.Off, |
105 | | - ) |
| 75 | + icon6.addPixmap(QtGui.QPixmap("ui/resources/edit-cut.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
106 | 76 | self.action_Cut.setIcon(icon6) |
107 | 77 | self.action_Cut.setObjectName("action_Cut") |
108 | | - self.actionOpen_All = QtWidgets.QAction(MainWindow) |
| 78 | + self.actionOpen_All = QtGui.QAction(parent=MainWindow) |
109 | 79 | self.actionOpen_All.setObjectName("actionOpen_All") |
110 | | - self.action_About = QtWidgets.QAction(MainWindow) |
| 80 | + self.action_About = QtGui.QAction(parent=MainWindow) |
111 | 81 | icon7 = QtGui.QIcon() |
112 | | - icon7.addPixmap( |
113 | | - QtGui.QPixmap("ui/resources/help-content.png"), |
114 | | - QtGui.QIcon.Normal, |
115 | | - QtGui.QIcon.Off, |
116 | | - ) |
| 82 | + icon7.addPixmap(QtGui.QPixmap("ui/resources/help-content.png"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) |
117 | 83 | self.action_About.setIcon(icon7) |
118 | 84 | self.action_About.setObjectName("action_About") |
119 | | - self.action_Find_Replace = QtWidgets.QAction(MainWindow) |
| 85 | + self.action_Find_Replace = QtGui.QAction(parent=MainWindow) |
120 | 86 | self.action_Find_Replace.setObjectName("action_Find_Replace") |
121 | 87 | self.menuOpen_Recent.addAction(self.actionOpen_All) |
122 | 88 | self.menu_File.addAction(self.action_New) |
@@ -160,47 +126,27 @@ def retranslateUi(self, MainWindow): |
160 | 126 | self.menu_Help.setTitle(_translate("MainWindow", "&Help")) |
161 | 127 | self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar")) |
162 | 128 | self.action_New.setText(_translate("MainWindow", "&New...")) |
163 | | - self.action_New.setToolTip( |
164 | | - _translate("MainWindow", "Create a New Document") |
165 | | - ) |
| 129 | + self.action_New.setToolTip(_translate("MainWindow", "Create a New Document")) |
166 | 130 | self.action_New.setShortcut(_translate("MainWindow", "Ctrl+N")) |
167 | 131 | self.action_Open.setText(_translate("MainWindow", "&Open...")) |
168 | | - self.action_Open.setToolTip( |
169 | | - _translate("MainWindow", "Open a Document") |
170 | | - ) |
| 132 | + self.action_Open.setToolTip(_translate("MainWindow", "Open a Document")) |
171 | 133 | self.action_Open.setShortcut(_translate("MainWindow", "Ctrl+O")) |
172 | 134 | self.action_Save.setText(_translate("MainWindow", "&Save")) |
173 | | - self.action_Save.setToolTip( |
174 | | - _translate("MainWindow", "Save the Current Document") |
175 | | - ) |
| 135 | + self.action_Save.setToolTip(_translate("MainWindow", "Save the Current Document")) |
176 | 136 | self.action_Save.setShortcut(_translate("MainWindow", "Ctrl+S")) |
177 | 137 | self.action_Exit.setText(_translate("MainWindow", "&Exit")) |
178 | 138 | self.action_Copy.setText(_translate("MainWindow", "&Copy")) |
179 | | - self.action_Copy.setToolTip( |
180 | | - _translate("MainWindow", "Copy Slected Text") |
181 | | - ) |
| 139 | + self.action_Copy.setToolTip(_translate("MainWindow", "Copy Slected Text")) |
182 | 140 | self.action_Copy.setShortcut(_translate("MainWindow", "Ctrl+C")) |
183 | 141 | self.action_Paste.setText(_translate("MainWindow", "&Paste")) |
184 | | - self.action_Paste.setToolTip( |
185 | | - _translate("MainWindow", "Paste Copied Text") |
186 | | - ) |
| 142 | + self.action_Paste.setToolTip(_translate("MainWindow", "Paste Copied Text")) |
187 | 143 | self.action_Paste.setShortcut(_translate("MainWindow", "Ctrl+V")) |
188 | 144 | self.action_Cut.setText(_translate("MainWindow", "C&ut")) |
189 | | - self.action_Cut.setToolTip( |
190 | | - _translate("MainWindow", "Cut Selected Text") |
191 | | - ) |
| 145 | + self.action_Cut.setToolTip(_translate("MainWindow", "Cut Selected Text")) |
192 | 146 | self.action_Cut.setShortcut(_translate("MainWindow", "Ctrl+X")) |
193 | 147 | self.actionOpen_All.setText(_translate("MainWindow", "Open All")) |
194 | | - self.actionOpen_All.setToolTip( |
195 | | - _translate("MainWindow", "Open All Recent Documents") |
196 | | - ) |
| 148 | + self.actionOpen_All.setToolTip(_translate("MainWindow", "Open All Recent Documents")) |
197 | 149 | self.action_About.setText(_translate("MainWindow", "&About...")) |
198 | | - self.action_Find_Replace.setText( |
199 | | - _translate("MainWindow", "&Find and Replace...") |
200 | | - ) |
201 | | - self.action_Find_Replace.setToolTip( |
202 | | - _translate("MainWindow", "Launch Find and Replace Dialog") |
203 | | - ) |
204 | | - self.action_Find_Replace.setShortcut( |
205 | | - _translate("MainWindow", "Ctrl+F") |
206 | | - ) |
| 150 | + self.action_Find_Replace.setText(_translate("MainWindow", "&Find and Replace...")) |
| 151 | + self.action_Find_Replace.setToolTip(_translate("MainWindow", "Launch Find and Replace Dialog")) |
| 152 | + self.action_Find_Replace.setShortcut(_translate("MainWindow", "Ctrl+F")) |
0 commit comments