Mercurial > code > home > repos > light9
annotate bin/attic/gtk_dnd_demo.py @ 2400:9a4bc2ea264e
ui tweaks and link fix
author | drewp@bigasterisk.com |
---|---|
date | Fri, 17 May 2024 13:25:46 -0700 |
parents | 4556eebe5d73 |
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() |