It seems like you are mixing up two things: > pyuic4 '*.ui' -o '*.py' >
Should be run from the terminal, depending on your installation you have to put an absolute path to the pyuic4 command. After that you can import the created python file. Reference: http://pyqt.sourceforge.net/Docs/PyQt4/designer.html > from PyQt4 import QtGui,QtCore, uic The uic module you can import in python on the other hand allows you to dynamically compile the .ui file, with uic.loadUiType(designerfile.ui). Nathan Horne has written a nice introduction to this: http://nathanhorne.com/?p=451 -- Sascha Kremers Gesendet mit Sparrow (http://www.sparrowmailapp.com/?sig) On Tuesday, 15. October 2013 at 05:08, Dai-Chang Yang wrote: > After saving ui by Qt designer ,I want to convert the *.ui to *.py. > > And I found this from google but it's not work. > > from PyQt4 import QtGui,QtCore, uic > > pyuic4 '*.ui' -o '*.py' > > Can anyone help me? THANKS. > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/1c95878a-8659-42a6-9851-eb9c69b409ce%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/73FC14B3CA264B67B06E317B7BC91946%40gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
