--- 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()
+