view bin/gtk_dnd_demo.py @ 1884:5cde72dfdc22

change collector output code to use very specific types. Might fix bugs too. Ignore-this: ce9f2586b03f5a773accab7ca3bf6c5d
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 28 May 2019 06:48:37 +0000
parents 6fa4288da8a6
children
line wrap: on
line source

#!bin/python
import run_local
import gtk
import sys
sys.path.append(".")
from rdflib import URIRef
from light9 import networking
from light9.editchoicegtk import EditChoice, Local
from light9.observable import Observable
from rdfdb.syncedgraph import SyncedGraph

win = gtk.Window()

graph = SyncedGraph(networking.rdfdb.url, "gtkdnddemo")

r1 = URIRef("http://example.com/interestingThing")
v = Observable(r1)
win.add(EditChoice(graph, v))
win.show_all()
gtk.main()