Global Variables + Threads
Aahz Maruch
aahz at panix.com
Wed Jun 13 10:58:31 EDT 2001
In article <3B26796A.C3FAF2E3 at telocity.com>,
Adonis <deltapigz at telocity.com> wrote:
>
>in python im declaring varibles in which willbe used by Tkinter as
>objects within itself; now since they are globally declared i assumed
>they would be fill as soon as the class thread finishes execution. or by
>being a thread; thus being pushed to its own thread makes it lose
>"contact" with the global variable and instead declares it as local?
>
>if this is the case then how may i fix it?
Pass around a class instance.
--
--- Aahz <*> (Copyright 2001 by aahz at pobox.com)
Hugs and backrubs -- I break Rule 6 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista
"Just because I'm selling you into slavery doesn't mean we can't be
friends." B-movie cliche Hall of Fame (_Bounty Hunter: 2002_)
More information about the Python-list
mailing list