1
1
Aaron Stevens
15 April 2009
CS108 Lecture 30: Graphical User Interface: Selection using PythonCard
2
PythonCard notes for Mac: Running the Layout Editor: it does not run - - PDF document
CS108 Lecture 30: Graphical User Interface: Selection using PythonCard Aaron Stevens 15 April 2009 1 PythonCard notes for Mac: Running the Layout Editor: it does not run from IDLE. You can run it from the command line. I have a script I
1
2
3
4
5
6
http://www.cs.bu.edu/courses/cs108/gui_naming_conventions.html
7
8
def on_chkSugar_mouseClick(self, event): print "def on_chkSugar_mouseClick(self, event):"
9
http://pythoncard.sourceforge.net/framework/events_and_handlers.html
10
11
12
13
14
http://pythoncard.sourceforge.net/framework/components.html
15
def debugComponentsAndAttributes(self): for component in self.components.iterkeys(): # self.components is a dictionary (and also an object) print component, "->", type(self.components[component]) attributes = dir(type(self.components[component])) for attr in attributes: if attr[0] >= 'a': # only print lower case names print "\t",attr print
16
17
18