Changing password and email

This commit is contained in:
BarsTiger
2022-02-03 18:38:11 +02:00
parent 6927bd6286
commit 3df906bb93
5 changed files with 101 additions and 17 deletions

View File

@@ -1,6 +1,6 @@
from PyQt5 import QtCore, QtGui, QtWidgets
import modules.images
import requests
import modules.images # import images from binaries
import ctypes
class Ui_MainWindow(object):
@@ -801,9 +801,25 @@ class Ui_DownloadWindow(object):
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"))
self.logs_box.setPlaceholderText(_translate("MainWindow", "Logs"))
def popup(title, text):
QtWidgets.QMessageBox.information(None, title, text)
def cpopup(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)
if __name__ == "__main__":
import sys