some filesystem changes

This commit is contained in:
BarsTiger
2022-08-02 18:59:10 +03:00
parent 096e9d7f0d
commit 0820452e97
13 changed files with 520 additions and 8 deletions

20
gui/modules/core/popup.py Normal file
View File

@@ -0,0 +1,20 @@
import ctypes
def qtpopup(title, text):
from PyQt5 import QtWidgets
QtWidgets.QMessageBox.information(None, title, text)
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)