view bin/gtk_dnd_demo.py @ 1365:a6ca5e87ab3e

a bit more usage of runHandler in timeline element Ignore-this: 7f8b7ddd8c7501b8231755c4a172ad2c
author Drew Perttula <drewp@bigasterisk.com>
date Mon, 06 Jun 2016 07:07:19 +0000
parents a38955ba6f40
children 6fa4288da8a6
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 light9.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()