Nevermind. I retraced my steps and VIEW.Modulename.Classname is working now. No idea why it wasn’t earlier.
Gre7g
···
On 4/24/08, Gre7g Luterman gre7g.luterman@gmail.com wrote:
I’m trying to refactor my code so that all of my GUI stuff is inside a single package called VIEW (i.e. moved into the VIEW/ subdirectory in which I’ve placed a init.py file).
My window layouts are saved in an XRC file, and many of my window elements in the file are subclassed with an attribute such as:
subclass=“Modulename.Classname”
After the refactor, the XRC will not load because it cannot find these classes. I’ve tried changing all of the subclass attributes to:
subclass=“VIEW.Modulename.Classname”
but that didn’t help. Neither did changing the cwd before doing my LoadFrame().
I’ve searched through XRC documentation, but I’m not finding anything on directories. What’s the correct way to do this?
Should I expect more difficulties when I compile this program to an .exe as well?
All insight is appreciated!
Gre7g