mirror of
https://gitlab.com/RemixDev/deemix-gui-pyweb.git
synced 2025-01-01 04:16:08 +00:00
try switching to Qt if gi isn't available
This commit is contained in:
parent
09e2b25ed1
commit
1782ee940a
|
@ -91,7 +91,7 @@ if __name__ == '__main__':
|
||||||
rv('WebKit2', '4.0')
|
rv('WebKit2', '4.0')
|
||||||
print("Starting with GTK")
|
print("Starting with GTK")
|
||||||
webview.start()
|
webview.start()
|
||||||
except ValueError:
|
except (ValueError, ImportError):
|
||||||
print("Starting with QT")
|
print("Starting with QT")
|
||||||
webview.start(gui='qt')
|
webview.start(gui='qt')
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue