Quitting my program

volumeregeling volumeregeling at hotmail.com
Tue Jan 4 10:45:19 EST 2000


Hi,

I have a problem ,I don´t know how to stop my program from a function.
I´ll show the little piece of code which I have now. (added extra
spaces on the subject fields)

  Command_button.menu.add_command(label='Quit', underline=0, 
				    command=   Command_button.quit   )

I would like to have the following :

  Command_button.menu.add_command(label='Quit', underline=0, 
				    command=    stop_ program  )

def stop_program()
      command_button.quit


I can´t seem to get the command_button in the stop_program function.

I don't think this is a difficult problem, but i don´t think the help
files from python are the best around (sorry creators !!??!?)

thanks,

Volumeregeling




More information about the Python-list mailing list