Add GTK test

This commit is contained in:
Roman Sirokov
2015-11-19 16:09:23 +02:00
parent b543c60cf5
commit f85aebcb0b
2 changed files with 12 additions and 6 deletions

12
examples/gtk_test.py Normal file
View 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")

View File

@@ -1,6 +0,0 @@
__author__ = 'roman.sirokov'
import test
test.init()
test.main_loop()