get window size from config file
This commit is contained in:
parent
656f76ee3b
commit
e74b3620ca
@ -5,8 +5,13 @@ import imaplib
|
|||||||
class Window(object):
|
class Window(object):
|
||||||
def __init__(self, conf):
|
def __init__(self, conf):
|
||||||
self.conf = conf
|
self.conf = conf
|
||||||
|
if not 'width' in self.conf:
|
||||||
|
self.conf['width'] = 32
|
||||||
|
if not 'height' in self.conf:
|
||||||
|
self.conf['height'] = 32
|
||||||
|
|
||||||
self.window = gtk.Window()
|
self.window = gtk.Window()
|
||||||
|
self.window.set_default_size(self.conf['width'], self.conf['height'])
|
||||||
self.window.set_decorated(False)
|
self.window.set_decorated(False)
|
||||||
self.window.connect('destroy', self.destroy_event)
|
self.window.connect('destroy', self.destroy_event)
|
||||||
self.window.connect('button-release-event', self.button_release)
|
self.window.connect('button-release-event', self.button_release)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user