Updated to force the window title to the Program Name

This commit is contained in:
AndrewButer committed 2011-03-16 11:04:15 -04:00
1 parent af65d8bc83
commit 9496c3c72d
2 files changed
+4 -3

No files matched your search

+3 -2
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)
+1 -1
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__":