Mercurial > code > home > repos > light9
view bin/gtk_dnd_demo.py @ 929:c20c2eea6fce
another hack to stop graphfile from thinking its own new empty file means it should delete all the statements in that context
Ignore-this: 94639afbbe8d3a0abd8a06e16922394f
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Tue, 11 Jun 2013 20:25:02 +0000 |
parents | 339e99981fd4 |
children | a38955ba6f40 |
line wrap: on
line source
#!bin/python import run_local import gtk import sys sys.path.append(".") from rdflib import URIRef from light9.editchoicegtk import EditChoice, Local from light9.observable import Observable from light9.rdfdb.syncedgraph import SyncedGraph win = gtk.Window() graph = SyncedGraph("gtkdnddemo") r1 = URIRef("http://example.com/interestingThing") v = Observable(r1) win.add(EditChoice(graph, v)) win.show_all() gtk.main()