tuikit/widget.py
changeset 2 684cdc352562
parent 1 69318aba22bf
child 5 ae128c885d0f
--- a/tuikit/widget.py	Thu Feb 17 23:35:05 2011 +0100
+++ b/tuikit/widget.py	Tue Mar 15 17:27:09 2011 +0100
@@ -35,6 +35,9 @@
         self.top = top
 
 
+    ### event management
+
+
     def newevent(self, event):
         self.event[event] = []
 
@@ -62,6 +65,9 @@
         getattr(self, event)(*args, **kwargs)
 
 
+    ###
+
+
     def resize(self):
         self.handle('resize')
 
@@ -160,3 +166,13 @@
             return self.y + y, self.x + x
         return self.y, self.x
 
+
+    def hide(self):
+        self.hidden = True
+        self.redraw()
+
+
+    def show(self):
+        self.hidden = False
+        self.redraw()
+