Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52915
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2013-08-23 16:39 -0700 |
| References | (7 earlier) <c910e25bc001a24044ee87c100291760@localhost> <CANBpqbfLNEfiVyomwZ1P5iGOQGMo1CrMid9FYb1N-r0+Qrb3sQ@mail.gmail.com> <CANBpqbdmvnh4mNHGCXK6qjE9oqei=3coVJg0G1yuYTc8B+0P6g@mail.gmail.com> <CANBpqbditKn21k6jPRNaWTp6i_cZjE5wwM923KX6gSjK2J1uSA@mail.gmail.com> <mailman.182.1377289040.19984.python-list@python.org> |
| Message-ID | <8fd16ce2-c620-45ae-ad6e-403dda99d050@googlegroups.com> (permalink) |
| Subject | Re: Using PyQT with QT Designer |
| From | tausciam@gmail.com |
Thank you. I just deleted all of them, reran pyuic4 on window.ui and regenerated window.py just to make sure. Unfortunately, I get the same problem. I've got the GUI perfectly designed just like I want it in window.py... just can't figure out how to use it in my program. On Friday, August 23, 2013 3:16:59 PM UTC-5, Dave Angel wrote: > 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 | Next — Previous in thread | Find similar | Unroll 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