3 May 2008 15:12
Re: Listbox selection persistence
Fredrik Lundh <fredrik <at> pythonware.com>
2008-05-03 13:12:50 GMT
2008-05-03 13:12:50 GMT
leegold wrote: > But the x does not seem to persist outside of the > def selected() block. I want the final last button > press to persist so I can use those indexes for > further processing. What am I missing here? variables that are assigned inside a function are made local by default; to treat them otherwise, you need to flag them as global. see your favourite Python tutorial for details. </F>
RSS Feed