Mercurial > code > home > repos > light9
annotate bin/gtk_dnd_demo.py @ 1814:fba2a716ef2a
not safe yet
Ignore-this: 8205d3831514567df896cda5f3f734b9
author | drewp@bigasterisk.com |
---|---|
date | Fri, 08 Jun 2018 11:49:08 +0000 |
parents | 6fa4288da8a6 |
children |
rev | line source |
---|---|
865 | 1 #!bin/python |
2 import run_local | |
3 import gtk | |
4 import sys | |
5 sys.path.append(".") | |
6 from rdflib import URIRef | |
1114
a38955ba6f40
rdfdb port is now in the config
Drew Perttula <drewp@bigasterisk.com>
parents:
865
diff
changeset
|
7 from light9 import networking |
865 | 8 from light9.editchoicegtk import EditChoice, Local |
9 from light9.observable import Observable | |
1692 | 10 from rdfdb.syncedgraph import SyncedGraph |
865 | 11 |
12 win = gtk.Window() | |
13 | |
1114
a38955ba6f40
rdfdb port is now in the config
Drew Perttula <drewp@bigasterisk.com>
parents:
865
diff
changeset
|
14 graph = SyncedGraph(networking.rdfdb.url, "gtkdnddemo") |
865 | 15 |
16 r1 = URIRef("http://example.com/interestingThing") | |
17 v = Observable(r1) | |
18 win.add(EditChoice(graph, v)) | |
19 win.show_all() | |
20 gtk.main() |