Builder
This commit is contained in:
20
ui/gui.py
Normal file
20
ui/gui.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import ctypes
|
||||
import os
|
||||
|
||||
|
||||
def popup(title, text, style=0):
|
||||
"""
|
||||
Styles:
|
||||
0 : OK
|
||||
1 : OK | Cancel
|
||||
2 : Abort | Retry | Ignore
|
||||
3 : Yes | No | Cancel
|
||||
4 : Yes | No
|
||||
5 : Retry | Cancel
|
||||
6 : Cancel | Try Again | Continue
|
||||
"""
|
||||
return ctypes.windll.user32.MessageBoxW(0, text, title, style)
|
||||
|
||||
|
||||
def cls():
|
||||
os.system("cls" if os.name == "nt" else "clear")
|
||||
@@ -256,7 +256,7 @@ class Ui_MainWindow(object):
|
||||
self.is_nuitka.setText(_translate("MainWindow", "nuitka"))
|
||||
self.label.setText(_translate("MainWindow", "Choose builder"))
|
||||
self.enable_console_button.setText(_translate("MainWindow", "Invisible window"))
|
||||
import images_rc
|
||||
import ui.images_rc
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user