Updated to force the window title to the Program Name

This commit is contained in:
AndrewButer 2011-03-16 11:04:15 -04:00
parent af65d8bc83
commit 9496c3c72d
2 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import gobject
from datetime import *
class Window:
def __init__(self, ds):
def __init__(self, progName, ds):
self.ds = ds
self.shown_projects = []
now = datetime.now()
@ -12,7 +12,8 @@ class Window:
# Top-level Window creation
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.set_geometry_hints();
self.window.set_title(progName)
self.window.set_geometry_hints()
self.window.connect("delete_event", self.delete_event)
self.window.connect("destroy", self.destroy_event)
self.window.connect("key-press-event", self.window_key_press_event)

2
dwtt
View File

@ -39,7 +39,7 @@ def main(argv):
conf_file = dbfile + '.conf'
ds = DataStore(dbfile)
w = Window(ds)
w = Window(PROGRAM_NAME, ds)
w.main()
if __name__ == "__main__":