First files added

This commit is contained in:
BarsTiger
2023-02-01 17:03:14 +02:00
commit 2a189cc689
19 changed files with 1446 additions and 0 deletions

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

@@ -0,0 +1,26 @@
import ctypes
def qtpopup(title, text):
"""
Popup using Qt
:param title: Title of popup
:param text: Text
:return: None
"""
from PySide6 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)