Dynamically changing background image?
Alec Bennett <[email protected]> Wed, 29 Jun 2011 14:31:17 -0700
| Newsgroups | gmane.comp.python.pythoncard |
|---|---|
| Message-ID | <[email protected]> |
--===============4195537152858093973== Content-Type: multipart/alternative; boundary=002215976112303eed04a6e081eb --002215976112303eed04a6e081eb Content-Type: text/plain; charset=ISO-8859-1 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? --002215976112303eed04a6e081eb Content-Type: text/html; charset=ISO-8859-1 I'm trying to change the background image of my PythonCard application after its been initialized, and having trouble.<br><br>By "background image" I mean the image that we set from Background Info --> Image.<br> <br>I can dynamically change the background color like this:<br><br>self.backgroundColor = (255, 255, 255)<br><br>And looking at the resource file, the image is in a key called "image". But this doesn't work:<br> <br>self.image = whatever.jpg<br><br>Is there some other trick to it?<br><br><br> <br> --002215976112303eed04a6e081eb-- --===============4195537152858093973== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ 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 --===============4195537152858093973== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Pythoncard-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pythoncard-users --===============4195537152858093973==--