|
From: Alec B. <wry...@gm...> - 2006-12-18 14:28:39
|
One more question and then I'm reasonably homefree:
Any clue how to set a component from a sub thread?
In other words, say I launch this thread from the class that's running my gui:
class somethread ( threading.Thread ):
def run ( self ):
self.components.nowplaying.file = "somefile.jpg"
somethread().start()
Currently the "self" doesn't reach the PyCard gui. I confess to still
being confused by "self", which is probably the problem.
Here's how my gui is launched, if it mattes:
class MyBackground(model.Background):
def on_initialize(self, event):
I've been trying things like MyBackground.components.nowplaying.file =
"somefile.jpg", but that's probably moronic.
|