Fix nast bug, don't construct multiple times!
This commit is contained in:
parent
95be6c3e42
commit
3ac947391c
@ -28,6 +28,7 @@ class Panel(gtk.Window):
|
||||
gtk.Window.__init__(self)
|
||||
self._x = 0
|
||||
self._y = 0
|
||||
self._constructed = False
|
||||
|
||||
self._view = PanelView()
|
||||
self.add(self._view)
|
||||
@ -61,7 +62,10 @@ class Panel(gtk.Window):
|
||||
|
||||
def construct(self):
|
||||
self._view.construct(self._x, self._y)
|
||||
self._constructed = True
|
||||
|
||||
def show(self):
|
||||
gtk.Window.show(self)
|
||||
|
||||
if not self._constructed:
|
||||
self.construct()
|
||||
|
Loading…
Reference in New Issue
Block a user