RE: [Boa Constr] RFE
Status: Beta
Brought to you by:
riaan
From: Riaan B. <ri...@tb...> - 2002-12-20 03:40:12
|
> > Just making sure, you know about the Name property you should > > set in the Inspector? Is this really that bad? > > Yes, I know about it. I also know that my app and frame won't be > named what > I want them named until I do a "save as..." in the editor (and > that doesn't > always work correctly beyond the app and frame files). UGH. At some stage in the average project's life you will have to do a "save as". The Designer maintains the wxPython derived class (e.g. wxFrame1) The Editor maintains Python modules (e.g. wxFrame1.py). By default they have the same name because I encourage the use of the "modulename == main class name" convention for generated frame modules. But I certainly won't enforce this convention. From the application file, the modules are only referenced by module name and a generic 'create' function. Frame type modules do not reference the application module. If you rename (save as) such a module, when the application module is not open in the IDE, the application file won't be updated. Maybe this happened to you. If you have some test case for which save as does not work, please send it to me. > > > > I would prefer this to renaming the > > > control after I have created it! For those who either don't mind > > > it or don't > > > want it, either a suggested default name could be in the dialog > > name edit > > > control when the dialog control comes up so that the user can just hit > > > "enter" or it could be a preferences option. It looks as though > > > it would be > > > a simple matter of modifying DesignerView.newControl(), at least > > > for having > > > the dialog all the time. No idea of how to make it a user preference. > > > > As the current practice is the same as Delphi and other GUI builders, > > it will stay the default behaviour. > > We could have a 'dsPromptForNameAtCreate' preference setting. > > But I'm not convinced yet. > > Oh good, every other brain dead GUI builder does it this way, so > Boa should > do it this way! I've really noticed how Delphi and "other GUI > builders" are > such market leaders. If Delphi where as bad as Boa (which, it's not), then > it's no wonder that Delphi and Pascal are niche products (which, > they are!). > Ending up with a bunch of classes and controls named > wx<something>1 through > wx<something>n makes for virtually unmaintainable, undebuggable code. > Generating code with 200+ character lines doesn't help either! I repeat, click on the Name property of your controls and change it!!! If you have test cases that causes Designer crashes they have a much bigger chance of getting fixed if you send them to me. Riaan. |