From: Alex T. <ale...@us...> - 2005-11-02 11:17:55
|
Update of /cvsroot/pythoncard/PythonCard/samples/helpfulWrappers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30560 Modified Files: helpfulWrappers.py Log Message: Added test cases for tooltip support (buttons and checkboxes). Added test case for wide checkbox. Index: helpfulWrappers.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/samples/helpfulWrappers/helpfulWrappers.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** helpfulWrappers.py 2 Nov 2005 01:10:40 -0000 1.1 --- helpfulWrappers.py 2 Nov 2005 11:17:46 -0000 1.2 *************** *** 22,25 **** --- 22,26 ---- 'position':(100,10), 'label':'Test pop-ups!', + 'toolTip':'try this', }, *************** *** 45,49 **** def on_initialize(self, event): ! self.boxes = [ ("already", False), ("later", True), ("a", True), ("b", True), ("c", True), ("d", True), ("a1", True), ("a2", True), ("a3", True) ] pass --- 46,50 ---- def on_initialize(self, event): ! self.boxes = [ ("already", False, 'already has a tooltip'), ("later", True), ("a long string to check sizing", True), "just a string", ("c", True), ("d", True), ("a1", True), ("a2", True), ("a3", True) ] pass *************** *** 63,67 **** result = helpful.multiButtonDialog(self, 'Dad, can I go to the movies tonight', \ ! ['Yes', 'No', 'Maybe', 'Ask me later', 'Ask your mum'], "Movies Dialog Title") print "Dialog result:\naccepted: %s\ntext: %s" % (result.accepted, result.text) --- 64,68 ---- result = helpful.multiButtonDialog(self, 'Dad, can I go to the movies tonight', \ ! ['Yes', 'No', 'Maybe', ('Ask me later', 'procrastination will be better tomorrow'), 'Ask your mum'], "Movies Dialog Title") print "Dialog result:\naccepted: %s\ntext: %s" % (result.accepted, result.text) |