@@ -157,11 +157,18 @@ def __setActions(self):
157
157
self .__apiAction = QWidgetAction (self )
158
158
self .__apiAction .setDefaultWidget (apiWidget )
159
159
160
- self .__langAction = QWidgetAction (self )
161
- self .__langCmbBox = QComboBox ()
162
- self .__langCmbBox .addItems (list (LangClass .LANGUAGE_DICT .keys ()))
163
- self .__langCmbBox .currentTextChanged .connect (LangClass .lang_changed )
164
- self .__langAction .setDefaultWidget (self .__langCmbBox )
160
+ # self.__langAction = QWidgetAction(self)
161
+ # self.__langCmbBox = QComboBox()
162
+ # self.__langCmbBox.addItems(list(LangClass.LANGUAGE_DICT.keys()))
163
+ # self.__langCmbBox.currentTextChanged.connect(self.__lang_changed)
164
+ # self.__langAction.setDefaultWidget(self.__langCmbBox)
165
+ #
166
+ # def __lang_changed(self, lang):
167
+ # LangClass.lang_changed(lang)
168
+ # # Define the arguments to be passed to the executable
169
+ # args = [sys.executable, "main.py"]
170
+ # # Call os.execv() to execute the new process
171
+ # os.execv(sys.executable, args)
165
172
166
173
def __setMenuBar (self ):
167
174
menubar = self .menuBar ()
@@ -212,7 +219,7 @@ def __setToolBar(self):
212
219
windowToolBar .addAction (self .__transparentAction )
213
220
windowToolBar .addAction (self .__showAiToolBarAction )
214
221
windowToolBar .addAction (self .__apiAction )
215
- windowToolBar .addAction (self .__langAction )
222
+ # windowToolBar.addAction(self.__langAction)
216
223
windowToolBar .setLayout (lay )
217
224
windowToolBar .setMovable (False )
218
225
self .addToolBar (aiTypeToolBar )
0 commit comments