27 lines
560 B
Python
27 lines
560 B
Python
|
# Bryan Schumaker (8/13/2010)
|
||
|
|
||
|
import ocarina
|
||
|
libsaria = ocarina.libsaria
|
||
|
gtk = ocarina.gtk
|
||
|
|
||
|
|
||
|
class Window(gtk.Window):
|
||
|
def __init__(self):
|
||
|
gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
|
||
|
connect = self.connect
|
||
|
connect("delete-event", ocarina.exit)
|
||
|
connect("size-allocate", self.resized)
|
||
|
connect("drag_motion", self.dnd)
|
||
|
connect("drag_drop", self.dnd)
|
||
|
|
||
|
self.drag_dest_set(0, [], 0)
|
||
|
self.show()
|
||
|
|
||
|
|
||
|
def resized(self, widget, geom):
|
||
|
libsaria.prefs["window_size"] = (geom.width, geom.height)
|
||
|
|
||
|
|
||
|
def dnd(self, widget, *args):
|
||
|
print widget, args
|