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


Groups > comp.lang.python > #52911

Re: Using PyQT with QT Designer

From Dave Angel <davea@davea.name>
Subject Re: Using PyQT with QT Designer
Date 2013-08-23 20:16 +0000
References (6 earlier) <CANBpqbcwSBxANJuXOLFt8OeY01ehduMqY63rXg-Z4NEuLjHVug@mail.gmail.com> <c910e25bc001a24044ee87c100291760@localhost> <CANBpqbfLNEfiVyomwZ1P5iGOQGMo1CrMid9FYb1N-r0+Qrb3sQ@mail.gmail.com> <CANBpqbdmvnh4mNHGCXK6qjE9oqei=3coVJg0G1yuYTc8B+0P6g@mail.gmail.com> <CANBpqbditKn21k6jPRNaWTp6i_cZjE5wwM923KX6gSjK2J1uSA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.182.1377289040.19984.python-list@python.org> (permalink)

Show all headers | View raw


Michael Staggs wrote:


>
> 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 don't know PyQT, so I've kept quiet so far...

You don't say what the name of the generated file is, but perhaps since
the source file was window.ui, the generated one is window.py

My guess is that when you do the

from window import Ui_MainWindow

it is finding some OTHER window.py file.

Have you tried simply adding an illegal line to the generated file, to
force the compiler to fail the import?  Once you're sure that it is
importing this particular file, you can remove such a line.

Could be that you have some other window.py file  (or window.pyc, or
whatever) and that it's finding that one.  Or it's finding some older
version of this one.



-- 
DaveA

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