mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-12-02 17:33:58 +00:00
Add GTK test
This commit is contained in:
12
examples/gtk_test.py
Normal file
12
examples/gtk_test.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import os
|
||||
os.environ["USE_GTK"] = "true"
|
||||
|
||||
import webview
|
||||
|
||||
"""
|
||||
This example creates a webview window using GTK (normally QT is preferred)
|
||||
"""
|
||||
|
||||
if __name__ == '__main__':
|
||||
webview.create_window("GTK browser", "http://www.flowrl.com")
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
__author__ = 'roman.sirokov'
|
||||
|
||||
import test
|
||||
|
||||
test.init()
|
||||
test.main_loop()
|
||||
Reference in New Issue
Block a user