Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'explicitly': 0.05; '22,': 0.09; 'buttons': 0.09; 'cc:addr:python-list': 0.11; 'gui': 0.12; '>>': 0.16; '.py': 0.16; '23,': 0.16; 'did.': 0.16; 'guessing': 0.16; 'ignoring': 0.16; 'redo': 0.16; 'referencing': 0.16; 'specifying': 0.16; 'widgets.': 0.16; 'thursday,': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'app': 0.19; 'pfxlen:0': 0.19; 'thu,': 0.19; 'aug': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'decide': 0.24; 'file.': 0.24; 'looks': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; '>': 0.26; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'point': 0.28; 'specifically': 0.29; 'am,': 0.29; "doesn't": 0.30; 'designer': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'getting': 0.31; 'lines': 0.31; 'file': 0.32; 'probably': 0.32; 'says': 0.33; 'totally': 0.33; "i'd": 0.34; 'subject:with': 0.35; 'something': 0.35; 'case,': 0.35; 'form.': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'thanks': 0.36; 'so,': 0.37; 'implement': 0.38; 'arrange': 0.38; 'needed': 0.38; 'anything': 0.39; 'bad': 0.39; 'morning': 0.39; 'how': 0.40; 'skip:u 10': 0.60; 'read': 0.60; 'august': 0.61; 'lost': 0.61; 'making': 0.63; 'email addr:gmail.com': 0.63; 'central': 0.64; 'designer.': 0.84; 'missing.': 0.84; 'phil': 0.84; 'picture,': 0.84; 'road.': 0.84; 'subject:Using': 0.84; 'thompson': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6Pt6u7DoJ44vDq8iy+mmdbdoTJK1JcWeKQU72j6jz7E=; b=GlH1zxz6M5kX+ZuOCLXCDVU+JYFX6cZkm47YJNtXPTxEK+NblMRDTWXBzWB8oqKhTb bS1FDyD0IlsNMybPv0mBXk5v77D1bxj7sufWmbam+UJ4PDcaG3wBtHJc9SkwW9nEjkRC +eyTbsY7mr4CqKKvQWPXockoXNJRqhMsIW9PTAZ9mjccmsWQ8oLCgM7ApnvIbsLxbW40 wzSa5UTRjFMR7R0INySrVGlnjB7RuAda+Bur8YtHRu9OCmbi3kval73pdRst6KwCOi7J xVOrATTjGkXffRwwGw2M0HGGZY9SPsoKEy+acjF6EQIMMOgeIX9cdxtvweMBvuQROKI5 x8HQ== MIME-Version: 1.0 X-Received: by 10.152.120.37 with SMTP id kz5mr15247591lab.21.1377262829698; Fri, 23 Aug 2013 06:00:29 -0700 (PDT) In-Reply-To: <5e17639a06ae1e82ca2ba37b5346d001@localhost> References: <1900623.ob0ITRdHWt@tannhaus-pc> <8f9d0148-fda3-4139-ab45-a8be6da8320f@googlegroups.com> <5e17639a06ae1e82ca2ba37b5346d001@localhost> Date: Fri, 23 Aug 2013 08:00:29 -0500 Subject: Re: Using PyQT with QT Designer From: Michael Staggs To: Phil Thompson Content-Type: multipart/alternative; boundary=089e01228148ba03be04e49cfd9c Cc: python-list@python.org 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: 123 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1377262831 news.xs4all.nl 15936 [2001:888:2000:d::a6]:59300 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52886 --089e01228148ba03be04e49cfd9c Content-Type: text/plain; charset=ISO-8859-1 I tried that this morning and it destroyed my form. So, right now, that's probably not what I'm looking for. But, if you look at that picture, the app isn't resized to 800x600 like it says in the ui file. The pixmaps aren't on the buttons like I set them up in the ui file. It's not using the ui file at all. So, what's the point of making a QT Designer file at all if it doesn't use it? I'm guessing it CAN use it and there is just something I'm missing. You may be right and I may not want to set the geometry in qt designer down the road. But, right now I do and not only is it not getting that from the ui file....it's not getting anything at all...even though I added all the lines I thought I needed to. If I decide to actually change the gui later, I'd like to be able to use QT Designer to do so...design a layout and not really have to change my program. As it stands, it's totally ignoring my ui file and I have to redo all the work in the program. In which case, there's no point to using qt designer at all. I know I have to be missing something though.... there has to be a way to use the work qt designer did. Thanks On Aug 23, 2013 2:39 AM, "Phil Thompson" wrote: > On Thu, 22 Aug 2013 18:08:14 -0700 (PDT), tausciam@gmail.com wrote: > > On Thursday, August 22, 2013 3:26:17 AM UTC-5, Phil Thompson wrote: > > > >> It looks like you aren't using a layout to arrange your widgets. > >> > >> Explicitly specifying geometries is a bad idea. > >> > >> > >> > >> Phil > > > > Thanks.QT Designer uses set geometry > > ...only because you have told it to... > > > and I'm totally lost as how to > > implement it. I've tried using a layout on the central widget. I've > tried > > specifically referencing the Ui_MainWindow in the window.py ui file... > > You need to read up on how to use layouts in Designer. The generated .py > file will then do what you want automatically. > > Phil > --089e01228148ba03be04e49cfd9c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I tried that this morning and it destroyed my form. So, righ= t now, that's probably not what I'm looking for.

But, if you look at that picture, the app isn't resized = to 800x600 like it says in the ui file. The pixmaps aren't on the butto= ns like I set them up in the ui file. It's not using the ui file at all= . So, what's the point of making a QT Designer file at all if it doesn&= #39;t use it?

I'm guessing it CAN use it and there is just something I= 'm missing.

You may be right and I may not want to set the geometry in q= t designer down the road. But, right now I do and not only is it not gettin= g that from the ui file....it's not getting anything at all...even thou= gh I added all the lines I thought I needed to.

If I decide to actually change the gui later, I'd like t= o be able to use QT Designer to do so...design a layout and not really have= to change my program. As it stands, it's totally ignoring my ui file a= nd I have to redo all the work in the program. In which case, there's n= o point to using qt designer at all.

I know I have to be missing something though.... there has t= o be a way to use the work qt designer did.

Thanks=A0

On Aug 23, 2013 2:39 AM, "Phil Thompson&quo= t; <phil@riverbankcomputi= ng.com> wrote:
tausciam@gmail.com wrote:
> On Thursday, August 22, 2013 3:26:17 AM UTC-5, Phil Thompson wrote: >
>> It looks like you aren't using a layout to arrange your widget= s.
>>
>> Explicitly specifying geometries is a bad idea.
>>
>>
>>
>> Phil
>
> Thanks.QT Designer uses set geometry

...only because you have told it to...

> and I'm totally lost as how to
> implement it. I've tried using a layout on the central widget. I&#= 39;ve
tried
> specifically referencing the Ui_MainWindow in the window.py ui file...=

You need to read up on how to use layouts in Designer. The generated .py file will then do what you want automatically.

Phil
--089e01228148ba03be04e49cfd9c--