use resize() on Window to more strongly set the size
This commit is contained in:
parent
2f28e4bd5e
commit
f791559d54
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user