Using PyQT with QT Designer

Michael Staggs tausciam at gmail.com
Fri Aug 23 14:05:26 EDT 2013


Again though....I'm finished with QT Designer. I have the finished product
I want exactly like I want it. But, as ive shown in the screenshots, I'm
doing exactly what ive seen in zetcode and other tutorials but It doesn't
seem to incorporate and act upon that ui file. The first thing you notice
is that it doesn't resize the main window to 800x600...which is one of the
first lines in the ui file.

I know whatever I'm doing wrong has to be a 1 or 2 line solution...just
something I should change a little....but I dont know what that is
On Aug 23, 2013 12:42 PM, "Phil Thompson" <phil at riverbankcomputing.com>
wrote:

> On Fri, 23 Aug 2013 12:30:41 -0500, Michael Staggs <tausciam at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130823/9bb50d4d/attachment.html>


More information about the Python-list mailing list