summaryrefslogtreecommitdiffstats
path: root/src/ganv_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/ganv_test.py')
-rwxr-xr-xsrc/ganv_test.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ganv_test.py b/src/ganv_test.py
new file mode 100755
index 0000000..1ea53c2
--- /dev/null
+++ b/src/ganv_test.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+
+from gi.repository import Ganv, Gtk
+
+win = Gtk.Window()
+win.set_title("Ganv Python Test")
+win.connect("destroy", lambda obj: Gtk.main_quit())
+
+canvas = Ganv.Canvas.new(1024, 768)
+module = Ganv.Module(canvas=canvas,
+ label="Test")
+# iport = Ganv.Port(module=module,
+# is_input=True,
+# label="In")
+# oport = Ganv.Port(module=module,
+# is_input=False,
+# label="In")
+
+win.add(canvas)
+win.show_all()
+win.present()
+Gtk.main()