Remove PySimpleGuiQT support

- Remove PySimpleGUIQt support, as it requires breaking changes for Python 3.11
- Build MSI based off Python 3.11 (significantly smaller due to removing Qt requirement)
- Bump version to 1.1.0
This commit is contained in:
jpattWPC
2023-02-01 11:06:05 -06:00
parent ef95a822c5
commit 696b8c7cd2
4 changed files with 8 additions and 11 deletions

View File

@@ -1,11 +1,7 @@
#!/usr/bin/python3
import proxmoxer # pip install proxmoxer
try:
import PySimpleGUIQt as sg # pip install PySimpleGUIQt
gui = 'QT'
except ImportError:
import PySimpleGUI as sg # pip install PySimpleGUI
gui = 'TK'
import PySimpleGUI as sg # pip install PySimpleGUI
gui = 'TK'
import requests
from configparser import ConfigParser
import random
@@ -154,6 +150,7 @@ def win_popup(message):
layout = [[sg.Text(message)]]
window = sg.Window('Message', layout, no_titlebar=True, keep_on_top=True, finalize=True)
window.bring_to_front()
_, _ = window.read(timeout=1) # Fixes a black screen bug
return window
def win_popup_button(message, button):
@@ -484,4 +481,6 @@ def main():
return 0
else:
return
sys.exit(main())
if __name__ == '__main__':
sys.exit(main())