Pyuic issue

691 views
Skip to first unread message

Alex Norton

unread,
May 10, 2013, 6:42:34 AM5/10/13
to portabl...@googlegroups.com
hello,

im attempting to use pyuic to create a .py file for my .ui created in QT.

however i cannot for unknown reasons get CMD to see pyuic. when i search for it i find the .py but not a .bat file

i am currently using 2.7.3.2 with the uic file added but it still doesnt work 

Tomas Sobota

unread,
May 10, 2013, 12:51:19 PM5/10/13
to portabl...@googlegroups.com
Alex,

In the Qt environment for C++, uic.exe is an executable. But in the PyQt environment pyuic.py is actually a python script, so you should run it with python.

Tom


--
--
You received this message because you are subscribed to the Google Groups "PortablePython" group.
To post to this group, send email to portabl...@googlegroups.com
To unsubscribe from this group, send email to portablepytho...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/portablepython?hl=en
---
You received this message because you are subscribed to the Google Groups "PortablePython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to portablepytho...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Perica Zivkovic

unread,
May 12, 2013, 6:58:23 AM5/12/13
to portabl...@googlegroups.com
Like Tom mentioned, use .py 

example:
[from Portable Python root folder] App\python.exe App\Lib\site-packages\PyQt4\uic\pyuic.py test.ui > test.py

replace test.ui and test.py with the filenames you need.

keep pythoning !

Alex Norton

unread,
May 12, 2013, 3:34:59 PM5/12/13
to portabl...@googlegroups.com
thanks. i will try this when possible
Reply all
Reply to author
Forward
0 new messages