Discussion:
[Pythoncard-users] Dynamically changing background image?
Alec Bennett
2011-06-29 21:31:17 UTC
Permalink
I'm trying to change the background image of my PythonCard application after
its been initialized, and having trouble.

By "background image" I mean the image that we set from Background Info -->
Image.

I can dynamically change the background color like this:

self.backgroundColor = (255, 255, 255)

And looking at the resource file, the image is in a key called "image". But
this doesn't work:

self.image = whatever.jpg

Is there some other trick to it?
John Henry
2011-06-29 22:52:22 UTC
Permalink
There are things I couldn't change neither (like the ICON for the
window). I don't think it's a Pythoncard limitation. You might have to
hunt for a wxPython solution and call it.
Post by Alec Bennett
I'm trying to change the background image of my PythonCard application
after its been initialized, and having trouble.
By "background image" I mean the image that we set from Background
Info --> Image.
self.backgroundColor = (255, 255, 255)
And looking at the resource file, the image is in a key called
self.image = whatever.jpg
Is there some other trick to it?
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Pythoncard-users mailing list
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Continue reading on narkive:
Loading...