Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!cs.uu.nl!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.033 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; '(at': 0.03; 'derived': 0.09; '(the': 0.15; 'buttons,': 0.16; 'from:addr:r.koebler': 0.16; 'from:name:roland koebler': 0.16; 'gave.': 0.16; 'labels,': 0.16; 'layout,': 0.16; 'qt,': 0.16; 'received:78.47': 0.16; 'subject:GUI': 0.16; 'widgets.': 0.16; 'pfxlen:0': 0.17; 'widget': 0.17; 'define': 0.20; 'explicit': 0.22; 'modifying': 0.22; 'precise': 0.22; 'cc:2**0': 0.23; "haven't": 0.23; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'skip:" 20': 0.26; '(e.g.': 0.27; 'designer': 0.27; 'fixed': 0.28; 'container': 0.29; 'class': 0.29; "i'm": 0.29; 'etc.)': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'text': 0.34; 'subject:?': 0.35; 'but': 0.36; 'wanted': 0.36; 'anything': 0.36; 'charset:us-ascii': 0.36; 'possible': 0.37; 'bad': 0.37; 'does': 0.37; 'being': 0.37; 'subject:: ': 0.38; 'supports': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'content-disposition:inline': 0.60; 'skip:u 10': 0.60; 'most': 0.61; 'remove': 0.61; 'more': 0.63; 'to,': 0.65; 'total': 0.65; 'subject:there': 0.65; 'positions': 0.68; 'obvious': 0.71; 'boxes.': 0.84; 'interesting,': 0.84; 'laid': 0.84; 'notebook': 0.96 Date: Wed, 20 Feb 2013 11:42:48 +0100 From: Roland Koebler To: python-list@python.org Subject: Re: Is there a graphical GUI builder? References: <20130220093450.GB22457@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1361356971 news.xs4all.nl 6911 [2001:888:2000:d::a6]:50082 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:39337 Hi, > > [q] In Qt, it's also possible to generate such flexible layouts. But > > it's unfortunately not the default way in Qt, and the Qt designer only > > supports it rudimentarily, and in a much less obvious way. And Qt does > > not have such a "container"-concept, where many widgets (e.g. buttons, > > notebook registers etc.) contain other widgets. > > ... > > I'm sorry but all of that is completely wrong. Using layouts that > automatically adapt to fonts, the size of widgets being laid out etc. is > the default way. You could use explicit sizes and positions if you wanted > to, but that would be bad for the reasons you gave. hmm, interesting, but then Qt Designer is a total mess. In Qt Designer (at least in 4.x), the default is a fixed layout, where I have to position the widgets at precise pixel-positions and have to define the size in pixels. And I cannot remove the default fixed layout without modifying the .ui-file in a text editor! > Qt does have a > container concept - that's what a QWidget is (the base class of all > widgets). A container concept like in GTK+ is *much* more than having a base widget where all widgets are derived from, or having layout boxes. It means that most widgets are containers, like buttons, notebook labels, checkboxes, radio buttons, scrollbar-windows etc. And I haven't seen anything like this in Qt (or: in Qt Designer). regards Roland