try switching to Qt if gi isn't available

This commit is contained in:
uh_wot 2020-07-10 16:26:27 +02:00
parent 09e2b25ed1
commit 1782ee940a

View file

@ -91,7 +91,7 @@ if __name__ == '__main__':
rv('WebKit2', '4.0')
print("Starting with GTK")
webview.start()
except ValueError:
except (ValueError, ImportError):
print("Starting with QT")
webview.start(gui='qt')
else: