Problem solved, nevermind.
It appears that the latest wxPython doesn't like it
when you specify "module.class" in the XRC subclass
definition if you try to load the window from within
module "module".
i.e. I was trying to load the dialog from within the
Firmware module, so the Firmware.DownloadDialog
subclass confused XRC. Had I changed the subclass to
DownloadDialog or tried to load the dialog from my
main program file (which I'm doing now), then it seems
to be okay.
Sorry to waste your bandwidth,
Gre7g
···
--- Gre7g Luterman <hafeliel@yahoo.com> wrote:
I just upgraded from wxPython 2.6.3.3 to 2.8.4.0
(Windows XP and Python 2.4) and the upgrade has
broken
the program I've been working on somehow.Specifically, I use XRC to load a variety of window
definitions; most of the top-level constructs
(panels,
dialogs, and frames) are subclassed in my code.
However, in this new version of wxPython, when I try
to run my program, I get a dialog that pops up
saying:Subclass 'Firmware.DownloadDialog' not found for
resource 'DOWNLOAD_DIALOG', not subclassing!Firmware.DownloadDialog does exist and it is
unchanged
from back when I was using 2.6.3.3:>>> import Firmware
>>> Firmware.DownloadDialog
<class 'Firmware.DownloadDialog'>Other subclassed dialogs in the program continue to
work, so the problem isn't with dialogs in general;
it's just this one.Okay, so I've made an error in this dialog code that
didn't upset the old wxPython and it does upset the
new. I'm cool with that. I've had that sort of
problem in the past. However, this is the only
error
I'm seeing. There's no text in the console to give
me
a hint as to why XRC is unhappy.Can anyone suggest a way to tell more about the
problem? Or perhaps a plan of attack for figuring
out
why XRC is unhappy?Gre7g
____________________________________________________________________________________
Pinpoint customers who are looking for what you
sell.
http://searchmarketing.yahoo.com/
____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/