8000 Commented out for later use · ag-python-qt/pyqt-openai@8082bc3 · GitHub
[go: up one dir, main page]

Skip to content
Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8082bc3

Browse files
committed
Commented out for later use
1 parent 253bf6b commit 8082bc3

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

pyqt_openai/main.py

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,18 @@ def __setActions(self):
157157
self.__apiAction = QWidgetAction(self)
158158
self.__apiAction.setDefaultWidget(apiWidget)
159159

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)
165172

166173
def __setMenuBar(self):
167174
menubar = self.menuBar()
@@ -212,7 +219,7 @@ def __setToolBar(self):
212219
windowToolBar.addAction(self.__transparentAction)
213220
windowToolBar.addAction(self.__showAiToolBarAction)
214221
windowToolBar.addAction(self.__apiAction)
215-
windowToolBar.addAction(self.__langAction)
222+
# windowToolBar.addAction(self.__langAction)
216223
windowToolBar.setLayout(lay)
217224
windowToolBar.setMovable(False)
218225
self.addToolBar(aiTypeToolBar)

0 commit comments

Comments
 (0)
0