Subclass not found for resource

Thank you for your response.

Actually I just found out the problem. It seems like when wx is creating
the dialog, it's not passing in any arguments while MyDialog takes in
additional arguments like Parent, etc. I changed MyDialog.__init__() to
take in 0 argument as well (self is kept, of course) and it worked.

From: Don Dwiggins [mailto:ddwiggins@advpubtech.com]
Sent: Thursday, July 28, 2005 12:51 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: [wxPython-users] Subclass not found for resource

Liu Shuai wrote:

> Hi guys,
>
> I wrote a custom wxDialog class called MyDialog (in module MyDialog)
> and created a myDialog.xrc file in wxGlade for it.
>
> When I tried to load the dialog from my app and I got an error

saying:

>
> Subclass "MyDialog.MyDialog" not found for resource "myDialog", not
> subclassing!
>
> What am I missing? Thank you!
>
I've only played briefly with subclassing, so this is just a shot in

the

dark: try using just "myDialog" in the subclass attribute.

Don Dwiggins
Advanced Publishing Technology

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail:

wxPython-users-help@lists.wxwidgets.org

ยทยทยท

-----Original Message-----