From 2368e7c4a58059bc929750fb157b0aed131e18c0 Mon Sep 17 00:00:00 2001 From: jpattWPC Date: Wed, 20 Apr 2022 08:56:30 -0500 Subject: [PATCH] Update vdiclient.py Fallback to Tkinter if QT not available. --- vdiclient.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vdiclient.py b/vdiclient.py index ac07db8..c60f712 100644 --- a/vdiclient.py +++ b/vdiclient.py @@ -1,6 +1,9 @@ #!/usr/bin/python3 import proxmoxer # pip install proxmoxer -import PySimpleGUIQt as sg # pip install PySimpleGUIQt +try: + import PySimpleGUIQt as sg # pip install PySimpleGUIQt +except ImportError: + import PySimpleGUI as sg # pip install PySimpleGUI import requests from configparser import ConfigParser import random