From: Bruce S. <ba...@an...> - 2002-01-06 20:59:27
|
This prints and displays 'hello': lab = label() s = 'hello' print s lab.text = s This on the other hand prints 'None' but gives an error on the last line: lab = label() s = None print s lab.text = s I propose changing the label machinery so that in this case you would see 'None' rather than getting an error. What do you think? One of the places where this comes up is in displaying the state of the mouse buttons, where mouse.button is None if no buttons are pressed. Bruce Sherwood |