Movatterモバイル変換
[0]ホーム
Changing global variables in tkinter/pmw callback
Fredrik Lundhfredrik at pythonware.com
Thu Apr 5 04:07:03 EDT 2001
Brian Elmegaard wrote:> I think I am running into a problem with scope, but I am not sure.has nothing to do with scopes -- objects and assignments don't workas you and your code expects.short answer: first read:http://effbot.org/guides/python-objects.htmand then think about what the "setting=CurrentCanvasSetting" and"setting=button.cget()" lines really do.I'll leave it to alex to write the long, pedagogical explanation.Cheers /F
More information about the Python-listmailing list
[8]ページ先頭