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


Groups > comp.lang.python > #52907

Re: Using PyQT with QT Designer

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tausciam@gmail.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; 'yet.': 0.04; 'back.': 0.09; 'wrong,': 0.09; 'python': 0.11; 'gui': 0.12; 'creates': 0.14; 'posted': 0.15; '"michael': 0.16; '23,': 0.16; 'avail': 0.16; 'c++.': 0.16; 'fly.': 0.16; 'isnt': 0.16; 'resizing': 0.16; 'tutorials.': 0.16; 'url:designer-manual': 0.16; 'url:qt-4': 0.16; 'url:qt-project': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'obviously': 0.18; 'trying': 0.19; 'examples': 0.20; 'import': 0.22; 'aug': 0.22; 'email addr:gmail.com&gt;': 0.22; 'certainly': 0.24; "shouldn't": 0.24; "haven't": 0.24; "i've": 0.25; '&gt;': 0.26; 'right.': 0.26; 'tutorials': 0.26; '----------': 0.26; 'asking': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'point': 0.28; 'michael': 0.29; "doesn't": 0.30; 'designer': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'towards': 0.31; 'though.': 0.31; 'anyone': 0.31; 'file': 0.32; 'this.': 0.32; 'probably': 0.32; 'front': 0.32; 'option': 0.32; 'run': 0.32; 'fri,': 0.33; 'date:': 0.34; "i'd": 0.34; 'problem': 0.35; 'subject:with': 0.35; "can't": 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'doing': 0.36; "didn't": 0.36; 'thanks': 0.36; "i'll": 0.36; 'url:org': 0.36; 'wrong': 0.37; 'so,': 0.37; 'too': 0.37; 'step': 0.37; 'skip:& 10': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'anything': 0.39; 'explain': 0.39; 'forwarded': 0.39; 'subject:': 0.39; 'generating': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'read': 0.60; 'took': 0.61; 'course': 0.61; 'first': 0.61; 'advanced': 0.63; 're:': 0.63; 'account': 0.65; 'media': 0.66; 'here': 0.66; 'url:png': 0.68; 'lose': 0.68; 'url:i': 0.72; 'designer.': 0.84; 'phil': 0.84; 'preview:': 0.84; 'subject:Using': 0.84; 'url:imgur': 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 :content-type; bh=jakVlBj5bpyEYkDzelbWFeklR8kWsnZWx59ULe+4bSQ=; b=DlCDSMnZ101czqnwBFEwj1xZZSv25yLMP9wUksvHI00kWgREpltwzMiXV0/BB6HlTH oqMMIZmI27i9u1W4v4ZB6oP+gzyBUX8FJtVJbLYFuyNe43Y1/s26vjwvlkJM5wTNxRUj 2T3kY6cp/3VNuz4cnJLyD+o0hAyXlH94ZRS1LVp3uxLM86Z4WxLYswOiZkFRZVFRM64F 9mm5ELibGapttS1aYryHezDH0BEpugLmDrdIvcJu5r5Wprdw80xlMPjZSlsGyMLOjbJP pQMZJw5xRbZdHZB1pz/p9gv0vASCRoP5/Y7TC/uOAYbPmOrVv65CO2K5vqaPhhlN6fn5 gH/g==
MIME-Version 1.0
X-Received by 10.112.33.146 with SMTP id r18mr102209lbi.48.1377280685042; Fri, 23 Aug 2013 10:58:05 -0700 (PDT)
In-Reply-To <CANBpqbdmvnh4mNHGCXK6qjE9oqei=3coVJg0G1yuYTc8B+0P6g@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> <fe56ef0e3ba736aa37ab88a089847840@localhost> <CANBpqbcwSBxANJuXOLFt8OeY01ehduMqY63rXg-Z4NEuLjHVug@mail.gmail.com> <c910e25bc001a24044ee87c100291760@localhost> <CANBpqbfLNEfiVyomwZ1P5iGOQGMo1CrMid9FYb1N-r0+Qrb3sQ@mail.gmail.com> <CANBpqbdmvnh4mNHGCXK6qjE9oqei=3coVJg0G1yuYTc8B+0P6g@mail.gmail.com>
Date Fri, 23 Aug 2013 12:58:04 -0500
Subject Re: Using PyQT with QT Designer
From Michael Staggs <tausciam@gmail.com>
To python-list@python.org
Content-Type multipart/alternative; boundary=14dae9473787fcf4cf04e4a125ee
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.179.1377280686.19984.python-list@python.org> (permalink)
Lines 188
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1377280686 news.xs4all.nl 15983 [2001:888:2000:d::a6]:45377
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52907

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Thanks for the manual. I will look into it but all the examples are
probably c++. Ive tried zetcode and some of the other tutorials.

That's the problem though. It is exactly how I want it in designer. It's
perfect as it is in designer when I preview it. Here is a screenshot of the
preview: http://i.imgur.com/ULRolq8.png

The problem isn't that I can't design it in QT Designer. It is designed
just like I want it. The problem is, when I try to follow zetcode and other
tutorials about how to import and use my form as designed by qt designer
and run through pyuic4.... it doesn't seem to even notice my ui file...and
certainly isnt acting on it.

I posted my code above where I was trying anything just to get it to use
that ui I designed in qt designer.....so far to no avail
---------- Forwarded message ----------
From: "Michael Staggs" <tausciam@gmail.com>
Date: Aug 23, 2013 12:54 PM
Subject: Re: Using PyQT with QT Designer
To: "Phil Thompson" <phil@riverbankcomputing.com>
Cc:

Thanks for the manual. I will look into it but all the examples are
probably c++. Ive tried zetcode and some of the other tutorials.

That's the problem though. It is exactly how I want it in designer. It's
perfect as it is in designer when I preview it. Here is a screenshot of the
preview: http://i.imgur.com/ULRolq8.png

The problem isn't that I can't design it in QT Designer. It is designed
just like I want it. The problem is, when I try to follow zetcode and other
tutorials about how to import and use my form as designed by qt designer
and run through pyuic4.... it doesn't seem to even notice my ui file...and
certainly isnt acting on it.

I posted my code above where I was trying anything just to get it to use
that ui I designed in qt designer.....so far to no avail
On Aug 23, 2013 12:42 PM, "Phil Thompson" <phil@riverbankcomputing.com>
wrote:

> On Fri, 23 Aug 2013 12:30:41 -0500, Michael Staggs <tausciam@gmail.com>
> wrote:
> > Right. I know that if I redesign it I have to run pyuic4 again and that
> I
> > shouldn't change that file...let qt designer do its job.
> >
> > But, that's exactly what I'm having the problem with...incorporating the
> > file pyuic4 gave me... and why I posted here.
> >
> > If you can point me towards something I need to read then by all
> means...
> > I'd be grateful. But, all the little tutorials I've found told me to do
> it
> > this way and obviously my program has no access to it....it's not
> resizing
> > the window or doing anything the ui file states. So, I do know I'm doing
> > something wrong and doing something the little tutorials didn't account
> > for. So, I'm asking here.
> >
> > Again, I'm just learning. I took the codecademy python course and
> started
> > trying to learn to build a media player...and haven't figured out how to
> > build the gui yet. If you or anyone else can point me to something that
> > would explain what I'm doing wrong, I'll read it from front to back. If
> > it's too advanced it will lose me....but I would like to learn to do
> this.
>
> http://qt-project.org/doc/qt-4.8/designer-manual.html
>
> Designer has a preview option that creates your UI on the fly. The first
> step would be to get it working as far as you can with that before you try
> generating any Python code.
>
> 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