Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52904

Re: Using PyQT with QT Designer

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <phil@riverbankcomputing.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.020
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'modify': 0.07; 'buttons': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'gui': 0.12; 'suggest': 0.14; '.ui': 0.16; 'did.': 0.16; 'guessing': 0.16; 'ignoring': 0.16; 'redo': 0.16; 'all.': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'app': 0.19; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; "aren't": 0.24; 'decide': 0.24; 'file.': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'point': 0.28; 'michael': 0.29; "doesn't": 0.30; 'designer': 0.30; 'strongly': 0.30; "i'm": 0.30; 'code': 0.31; 'getting': 0.31; 'lines': 0.31; 'received:207.126': 0.31; 'file': 0.32; 'probably': 0.32; 'run': 0.32; 'says': 0.33; 'fri,': 0.33; 'totally': 0.33; "i'd": 0.34; 'subject:with': 0.35; 'something': 0.35; 'case,': 0.35; 'form.': 0.35; 'there': 0.35; 'really': 0.36; 'should': 0.36; 'so,': 0.37; 'needed': 0.38; 'anything': 0.39; 'morning': 0.39; 'making': 0.63; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'designer.': 0.84; 'missing.': 0.84; 'phil': 0.84; 'picture,': 0.84; 'road.': 0.84; 'subject:Using': 0.84; '2013': 0.98
X-Virus-Scanned Debian amavisd-new at rvrbank1.user.openhosting.com
MIME-Version 1.0
Date Fri, 23 Aug 2013 18:17:24 +0100
From Phil Thompson <phil@riverbankcomputing.com>
To Michael Staggs <tausciam@gmail.com>
Subject Re: Using PyQT with QT Designer
Organization Riverbank Computing Limited
In-Reply-To <CANBpqbcNLreaGJnG+zfrNAL+4hsuXW8UKCHEXaaUd6hsGgja=Q@mail.gmail.com>
References <1900623.ob0ITRdHWt@tannhaus-pc> <mailman.124.1377160367.19984.python-list@python.org> <8f9d0148-fda3-4139-ab45-a8be6da8320f@googlegroups.com> <5e17639a06ae1e82ca2ba37b5346d001@localhost> <CANBpqbcNLreaGJnG+zfrNAL+4hsuXW8UKCHEXaaUd6hsGgja=Q@mail.gmail.com>
X-Sender phil@riverbankcomputing.com
User-Agent RoundCube Webmail/0.3.1
Content-Transfer-Encoding 8bit
Content-Type text/plain; charset=UTF-8
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 <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.174.1377278254.19984.python-list@python.org> (permalink)
Lines 43
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1377278254 news.xs4all.nl 15923 [2001:888:2000:d::a6]:56408
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52904

Show key headers only | View raw


On Fri, 23 Aug 2013 08:00:29 -0500, Michael Staggs <tausciam@gmail.com>
wrote:
> 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?

pyuic4 uses it to generate the corresponding Python code. Any time you
change the .ui file with Designer you have to run pyuic4 again. You should
not modify the Python code that pyuic4 generates.

> 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.

I strongly suggest you do some more reading about using Designer.

Phil

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Using PyQT with QT Designer Phil Thompson <phil@riverbankcomputing.com> - 2013-08-22 09:26 +0100
  Re: Using PyQT with QT Designer tausciam@gmail.com - 2013-08-22 18:08 -0700
    Re: Using PyQT with QT Designer Phil Thompson <phil@riverbankcomputing.com> - 2013-08-23 08:39 +0100
    Re: Using PyQT with QT Designer Michael Staggs <tausciam@gmail.com> - 2013-08-23 08:00 -0500
    Re: Using PyQT with QT Designer Phil Thompson <phil@riverbankcomputing.com> - 2013-08-23 18:17 +0100
    Re: Using PyQT with QT Designer Michael Staggs <tausciam@gmail.com> - 2013-08-23 12:30 -0500
    Re: Using PyQT with QT Designer Phil Thompson <phil@riverbankcomputing.com> - 2013-08-23 18:42 +0100
    Re: Using PyQT with QT Designer Michael Staggs <tausciam@gmail.com> - 2013-08-23 12:58 -0500
    Re: Using PyQT with QT Designer Michael Staggs <tausciam@gmail.com> - 2013-08-23 13:05 -0500
    Re: Using PyQT with QT Designer Dave Angel <davea@davea.name> - 2013-08-23 20:16 +0000
      Re: Using PyQT with QT Designer tausciam@gmail.com - 2013-08-23 16:39 -0700

csiph-web