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: 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>': 0.22; 'certainly': 0.24; "shouldn't": 0.24; "haven't": 0.24; "i've": 0.25; '>': 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: References: <1900623.ob0ITRdHWt@tannhaus-pc> <8f9d0148-fda3-4139-ab45-a8be6da8320f@googlegroups.com> <5e17639a06ae1e82ca2ba37b5346d001@localhost> Date: Fri, 23 Aug 2013 12:58:04 -0500 Subject: Re: Using PyQT with QT Designer From: Michael Staggs 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --14dae9473787fcf4cf04e4a125ee Content-Type: text/plain; charset=ISO-8859-1 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" Date: Aug 23, 2013 12:54 PM Subject: Re: Using PyQT with QT Designer To: "Phil Thompson" 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" wrote: > On Fri, 23 Aug 2013 12:30:41 -0500, Michael Staggs > 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 > --14dae9473787fcf4cf04e4a125ee Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

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

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

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

I posted my code above where I was trying anything just to g= et 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
S= ubject: 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 th= e other tutorials.

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

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

I posted my code above where I was trying anything just to g= et it to use that ui I designed in qt designer.....so far to no avail

On Aug 23, 2013 12:42 PM, "Phil Thompson&qu= ot; <ph= il@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 tha= t
I
> shouldn't change that file...let qt designer do its job.
>
> But, that's exactly what I'm having the problem with...incorpo= rating 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<= br> 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 ac= count
> for. So, I'm asking here.
>
> Again, I'm just learning. I took the codecademy python course and<= br> 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 tha= t
> 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<= br> generating any Python code.

Phil
--14dae9473787fcf4cf04e4a125ee--