Using PyQT with QT Designer

Phil Thompson phil at riverbankcomputing.com
Fri Aug 23 13:42:28 EDT 2013


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



More information about the Python-list mailing list