File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11# from fbs_runtime.application_context.PyQt5 import ApplicationContext
22from PyQt5 import QtWidgets
3+ from PyQt5 import QtCore
34import sys
45import mainWindowGUI as mainWindowGUI
56import mineSweeperGUI as mineSweeperGUI
@@ -28,7 +29,8 @@ def find_window(class_name, window_name):
2829 ui .mainWindow .show ()
2930 ui .mainWindow .game_setting_path = ui .game_setting_path
3031
31- hwnd = find_window (None , "元扫雷" )
32+ _translate = QtCore .QCoreApplication .translate
33+ hwnd = find_window (None , _translate ("MainWindow" , "元扫雷" ))
3234
3335 SetWindowDisplayAffinity = ctypes .windll .user32 .SetWindowDisplayAffinity
3436 ui .disable_screenshot = lambda : ... if SetWindowDisplayAffinity (hwnd , 0x00000011 ) else 1 / 0
Original file line number Diff line number Diff line change 11from PyQt5 import QtCore , QtWidgets
22from PyQt5 .QtCore import Qt
3- import configparser
43from PyQt5 .QtCore import QTimer
54from PyQt5 .QtWidgets import QApplication
65
You can’t perform that action at this time.
0 commit comments