Hello, I am using wxpython and I
am having trouble passing variables from one frame to another. If I have a
parent frame – frame1 – and I call a dialog using the following
text:
dlg = wxDialog2.wxDialog2(self)
try:
dlg.ShowModal()
finally:
Hi,
I'm new to the mailing, so greetings all!
I'm working on an application try to respond to events in Microsoft
Access using Python and win32com. However, I'm having trouble in
setting up the event handlers. I can think of 2 approaches both of
which yield win32com errors.
First is the a
Jeff Peery wrote:
Hello, I am using wxpython and I am having trouble passing variables
from one frame to another. If I have a parent frame – frame1 – and I
call a dialog using the following text:
dlg = wxDialog2.wxDialog2(self)
try:
dlg.ShowModal()
finally:
On Tue, 25 Jan 2005 14:28:24 -080, Ray S <[EMAIL PROTECTED]> wrote:
With the pure Python code below, I get results like:
micro sec: 1.0 12.2 154.8
micro sec: 0.9 11.3 156.0
when requesting 0, 10 and 160 us, which seems reasonable - PII600 Win2K Py2.2.
On Linux with a 2GHz Py2.3 it seems to always r
Ok, here it is. Thanks for the help really appreciate it. To pass
information from one frame to the next (i.e., from wxFrame1 to
wxDialog1) I use global variables from wxFrame1. So for example if I
want to use a wxFrame1 variable myVar in wxDialog1 then I use
wxFrame1.myVar in wxDialog1. I think
I have a script to change the desktop wallpaper. If it encounters a
corrupt jpg, it seems to get off track and not recover. Here's the
code snippet. This is called in a loop with several jpg images in a
directory to switch the wallpaper.
im = Image.open(filename)
[call im.resize() here if neces
One more clue. If I change the code to resize always, then the
corrupt jpg fails in the call to im.resize (before it attempts to call
im.save), and thereafter there are no problems--the subsequent normal
jpgs all work fine. So it appears that by failing in im.save, the
'windows.bmp' file is left