Hi Franz,
Franz Steinhäusler wrote:
Hello,
I'd like to know, who and why use a gui builder and their experiences.
I personally haven't used them until now.
I don't think I would have gotten as far as a hobby programmer without the use of an IDE, at the time about 3 years ago I nearly went with Corel Paradox, then I looked at VB and Delphi and reading a programming publication I read about Python and the rest is as one says history, as I came across wxPython and Boa.
My thoughts:
1) For one side, I don't know, how they get along with existing code.
With Boa one has to stay away from changing the code it generates, normally quit easy, if it gets in the way of what you want to do you can still use Boa by using custom_classes.
_custom_classes = {'wx.ComboBox': ['ComboBox'],}
In the above the "ComboBox" is my special version of the wx.ComboBox and when dropping a combobox in the Frame Designer (Boa's GUI designer) I can choose which one I want to use.
2) On the other side, is it really time saving to use them?
- I think so, but I think it very much depends on how one works. I am sure there are lots of people out there who are faster NOT using one.
- For me it helps being able to see how things will look while I create the GUI
- Boa's handling of sizers is not very intuitive and I understand that wxGlade and wxDesigner are much easier. I wanted an IDE and not just a GUI designer so I stayed with Boa and just get used to things (obviously complaining here and there to Riaan ).
3) And I think, they disturb the code.
Yes, your code is differently organized if you use one or if you don't. But that does not disturb me.
4) Changing a button name isn't so easy afterwards (with all references
in the code)
Isn't that problem the same with any approach? Create your controls with correct names is always the easiest , but then you can always change it and Boa will take care of all the generated stuff or at least most of it and then there is always find and replace.
For example XRC produces a XML file, if I'm informed right.
wxGlade also (although it seems to be nice). Cornice is also built with
wxGlade.
Haven't looked at it for some time, I preferred Boa because it was an IDE and NOT because it was a better GUI generator and for me that was at the time easier to learn (one tool instead of learning wxGlade for the GUI part and something else for the other editing work and something else to debug with.
Boa produces no extra file for controls.
(What I don't like is the incoherent appearance of the application).
Don't you have a similar problem with any generator (e.g. wxGlade) it/they need to generate the stuff in a way that they can also read it again. Therefore a certain organization of the code.
There are 3 fields in the taskbar and this splittering is annoying and
confusing.
Don't understand to what you refer to here.
On the other side, Boa is surely an terrific application, with all the
features, debugger, plugins, ...
Absolutely
I like to edit with DrPython, but creating dialogs etc. in an editor is
a little long winded
I'll have to have a look at it one of these days.
If someone can convince me to use a GUI Builder ...
I think that this is something you have to convince yourself by trying out a few and see if you can adapt your work style to the way the tool works (I know it would be nicer if the tool adapts to your work style).
Thank you!
--
Franz Steinhaeusler
See you
Werner