[Tutor] critique my script!
Danny Yoo
dyoo at hkn.eecs.berkeley.edu
Wed Jun 21 04:13:15 CEST 2006
> doesn't do_nothing(), but does something more interesting, something like:
>
> #########################################
> view = View()
> view.on_button_pressed = os.getcwd
> #########################################
Gaaa. Quick revision:
##################################
def print_cwd():
print os.getcwd()
view = View()
view.on_button_pressed = print_cwd
##################################
Anywhere in my previous message that uses os.getcwd() as the model should
be fixed to use print_cwd(). Sorry about that!
More information about the Tutor
mailing list