diff --git a/Window.py b/Window.py index 1d9e2ce..570f313 100755 --- a/Window.py +++ b/Window.py @@ -11,21 +11,21 @@ class Window(object): self.conf['height'] = 32 self.window = gtk.Window() - self.window.set_default_size(self.conf['width'], self.conf['height']) self.window.set_decorated(False) self.window.connect('destroy', self.destroy_event) self.window.connect('button-release-event', self.button_release) self.window.set_events(gtk.gdk.BUTTON_RELEASE_MASK) - if 'x' in self.conf and 'y' in self.conf: - self.window.move(self.conf['x'], self.conf['y']) - self.label = gtk.Label('-') self.window.add(self.label) self.window.show_all() + if 'x' in self.conf and 'y' in self.conf: + self.window.move(self.conf['x'], self.conf['y']) + self.window.resize(self.conf['width'], self.conf['height']) + def run(self): gtk.main()