Re: wxglade is not preserving my code after a regen
Dietmar Schwertberger <[email protected]> Tue, 27 Apr 2021 19:38:42 +0200
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
This option is not very robust against e.g. name changes. It's basically there for simple, quick & dirty projects. (This could be improved, if you volunteer to implement it.) For anything else, derive your own classes from the generated code. With revision 1.0 you can even keep the main file and specify "Instance class". E.g. your generated file has a frame class 'MyFrame' and the application in the file 'MyApp.py'. Now, you can implement your derived class in my_frame.py and enter 'my_frame.MyDerivedFrame' as instance class. Regards, Dietmar