From 9496c3c72d5fc78785664ac894d8f20cb7f79bda Mon Sep 17 00:00:00 2001 From: AndrewButer Date: Wed, 16 Mar 2011 11:04:15 -0400 Subject: [PATCH] Updated to force the window title to the Program Name --- Window.py | 5 +++-- dwtt | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Window.py b/Window.py index 7174059..3f7b30e 100644 --- a/Window.py +++ b/Window.py @@ -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) diff --git a/dwtt b/dwtt index 238c59a..1d9fe71 100755 --- a/dwtt +++ b/dwtt @@ -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__":