tuikit/window.py
changeset 32 088b92ffb119
parent 24 b248ef500557
child 34 e3beacd5e536
--- a/tuikit/window.py	Fri Dec 14 10:16:33 2012 +0100
+++ b/tuikit/window.py	Fri Dec 14 10:20:14 2012 +0100
@@ -5,12 +5,12 @@
 
 
 class Window(Container):
-    
+
     '''Window widget.
-    
+
     It represents part of screen with border, close button and contents.
     Window can be moved, resized or closed by user.'''
-    
+
     def __init__(self, width=40, height=10):
         '''Create window of requested size.'''
         Container.__init__(self, width, height)
@@ -23,12 +23,12 @@
 
         #: Window title.
         self.title = ''
-        
+
         self._closebutton = True
-        
+
         #: Allow user to resize window.
         self.resizable = True
-        
+
         #: Allow user to move window.
         self.movable = True
 
@@ -94,7 +94,7 @@
             self.width = self.origsize[0] + ev.wx - self.dragstart[0]
             self.height = self.origsize[1] + ev.wy - self.dragstart[1]
             self.resizing = False
-            self.emit('resize')
+            self.handle('resize')
         elif self.moving:
             self.x = ev.px - self.dragstart[0]
             self.y = ev.py - self.dragstart[1]
@@ -114,7 +114,7 @@
         if self.resizing:
             self.width = self.origsize[0] + ev.wx - self.dragstart[0]
             self.height = self.origsize[1] + ev.wy - self.dragstart[1]
-            self.emit('resize')
+            self.handle('resize')
         elif self.moving:
             self.x = ev.px - self.dragstart[0]
             self.y = ev.py - self.dragstart[1]