36 lines
669 B
Python
36 lines
669 B
Python
#! /usr/bin/python
|
|
|
|
# To change this template, choose Tools | Templates
|
|
# and open the template in the editor.
|
|
|
|
__author__="bjschuma"
|
|
__date__ ="$Jan 6, 2010 10:07:31 PM$"
|
|
|
|
import gtk
|
|
from manager import manager
|
|
#import settings
|
|
|
|
|
|
def quit(a,b):
|
|
manager.run("exit")
|
|
|
|
|
|
class Window(gtk.Window):
|
|
def __init__(self, title, type=gtk.WINDOW_TOPLEVEL, icon=None):
|
|
gtk.Window.__init__(self,type)
|
|
self.set_title(title)
|
|
self.connect("delete_event",quit)
|
|
#manager.run("sgtk", (name,self))
|
|
|
|
if not (icon == None):
|
|
self.set_icon_from_file(icon)
|
|
|
|
self.show()
|
|
|
|
|
|
def quit(self,func):
|
|
self.connect("delete_event",func)
|
|
|
|
#def quit(self,a,b):
|
|
# manager.run("exit")
|