Re: Absolute positioning
Igor Korot <[email protected]>
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <CA+FnnTwL-1cexXjP_QVXkqY_D_-CYv9=vDiH94yt4WV_6CaLfA@mail.gmail.com> |
Hi, On Sat, Nov 17, 2018 at 5:53 PM M A <[email protected]> wrote: > > > > On Nov 17, 2018, at 6:45 AM, Igor Korot <[email protected]> wrote: > > > > Hi, > > On Sat, Nov 17, 2018 at 5:29 PM M A <[email protected]> wrote: > >> > >> Hi, I'm new to wxWidgets and wxGlade. I come from a Tkinter/PAGE and PyObjc/Interface Builder background. I was wondering if it was possible to use absolute positioning in wxGlade? If it currently isn't possible, would patches to wxGlade that implement absolute positioning be accepted? > > > > In the GUI programming absolute positioning of the controls is > > possible but is not good design. > > Every platform has different defalts (fonts as one example). > > > > On top of that - what would happen if the user of the program changes > > the resolution or the program that was > > devbeloped in England would be run in Germany or Russia where the > > length of the words are different. > > > > wxWidgets uses sizers concept. > > There are a lot of tutorials/documentation about them - just search wx > > forum/documentation/Wiki. > > > > Thank you. > I'm certainly not a maintainer of wxGlade and definitely not a corewx-dev. But. > Its just that absolute positioning is way easier to use to make an interface than using sizers. Absolute positioning is perfect for creating mockups of possible designs. Absolute positioning is also great for windows that are not meant to be resized. It is possible someone may be making an interface for multiple operating systems. But is also possible someone may just need to support one operating system. It might be easier to use. But if you want to get a grip of multiplatform programming, whether it will be wxWidgets, GTK, Qt or any other framework/software you will absolutely have to use some kind of a system to work around platform differences. Also even if the window does not meant to be resized, there is a platform differences that needs to be taken into the account - font size is one of them. On top of that windows decorations takes different amount of' spaces on different platforms. Here I'm talking about window title, border, grips, that you absolutely have to account for. And if you are making an interface for 1 OS - why not use the native toolkit directly. After all, wxWidgets is the library that tries to wrap a native OS toolkit to make available cross-platform. It is neither GTK, nor Qt. > > I am thinking about implementing absolute positioning in wxGlade. Before I start this project would the maintainers be open to giving the user this option of absolute positioning of controls? It would give the user more power over how they want to create their interfaces. I feel this would be a benefit to many. Lets wait and see what the official maintainer of wxGlade has to say. But hopefully if he says NO, you will stay with the wxWidgets and will like the library as it is amazing. Thank you. > > _______________________________________________ > wxGlade-general mailing list > wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/wxglade-general