diff clients/pychan_demo/pychan_test.py @ 157:bb9902910067

input_rework merged! Bad features: * Broken DND for zero-projekt. * Design short-comings.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 14 Oct 2008 07:41:48 +0000
parents fe7ff4808529
children c305c5eda7ed
line wrap: on
line diff
--- a/clients/pychan_demo/pychan_test.py	Sun Oct 12 20:30:09 2008 +0000
+++ b/clients/pychan_demo/pychan_test.py	Tue Oct 14 07:41:48 2008 +0000
@@ -52,6 +52,9 @@
 			'slider': self.test_slider
 		}
 		self.gui.mapEvents(eventMap)
+		credits = self.gui.findChild(name="creditsLink")
+		credits.setEnterCallback(lambda w : credits._setText("CREDITS"))
+		credits.capture(lambda : credits._setText("Credits"), event_name="mouseExited")
 
 		from dynamic import DynamicExample
 		from styling import StylingExample
@@ -82,7 +85,6 @@
 
 	def showCredits(self):
 		print pychan.loadXML('gui/credits.xml').execute({ 'okButton' : "Yay!" })
-		
 	def test_slider(self):
 		self.slider_value._setText( str(self.slider.getValue()) )