Re: wxglade is not preserving my code after a regen
William Luitje <[email protected]> Tue, 27 Apr 2021 14:25:57 -0700
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <CACDBsVWCms3Y=6K932r+VwCjsnK9nqpdgJjDVRuRyGb36V+gqw@mail.gmail.com> |
Thank you for the derived class suggestion. I will try that in my next small project. On Tue, Apr 27, 2021 at 10:40 AM Dietmar Schwertberger < [email protected]> wrote: > 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 > > > > _______________________________________________ > wxGlade-general mailing list > wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/wxglade-general > _______________________________________________ wxGlade-general mailing list wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/wxglade-general