[PyQt] Re: PyQt Digest, Vol 46, Issue 56

objectref objectref at yahoo.gr
Tue May 27 13:30:35 BST 2008



-----Original Message-----
From: pyqt-bounces at riverbankcomputing.com
[mailto:pyqt-bounces at riverbankcomputing.com] On Behalf Of Vishwanath Kamath
Sent: Tuesday, May 27, 2008 3:05 PM
To: pyqt at riverbankcomputing.com
Subject: RE: [PyQt] Re: PyQt Digest, Vol 46, Issue 56
Importance: High


> > On Tuesday 27 May 2008 10:40:57 am Vishwanath Kamath Pethri wrote:
> > > Hi
> > >
> > >
> > >
> > > I have recently downloaded the "PyQt-Py2.5-gpl-4.4.2-1.exe" PyQT
> > installer
> > > from the site. I am now facing issues as mentioned below:
> > >
> > >
> > >
> > > 1.	Launch QtDesigner
> > > 2.	Design a UI. Save it to a local disk.
> > > 3.	Click on the "View Code" menu option.
> > >
> > >
> > >
> > > Error message, "Code Generation Failed" is displayed.
> > >
> > >
> > >
> > > Details of Error Message:
> > >
> > >
> > >
> > > Title: Code Generation Failed
> > >
> > > Message: "Unable to launch D:/PyQT/PyQt4/bin\uic"
> > >
> > >
> > >
> > > In the above mentioned message, last part "uic" is mentioned with a
> > forward
> > > slash. Is it as expected?
> > 
> > Yes. uic isn't included as its not needed for Python development.
> > 
> > Phil
> 
> >Is there any other way to generate Python code from PyQT? Because when
> >working with the QT v4.4.0 evaluation, QT generated C++ code for the
> same
> UI.
> 
> >I want to generate Python Code for the same UI.... Is it possible with
> the
> >PyQT Designer? 
> 
> >Please let me know if any work around is possible for this case.
> 
> >Neo
> 
> If I understand correctly, you need the
> c:\python25\Lib\site-packages\PyQt4\uic\pyuic.py and pass parameters the
> .ui
> files that you want to be generated as Python code. In fact, there is a
> batch file at c:\python25\pyqt4\bin\pyuic4.bay that makes this job easy.
> 
> 
> Anthony

>I tried with the same bat file, now I'm receiving error message as
mentioned
>below:

>Title: python.exe - Entry Point Not Found
>Message: The procedure entry point _Z10forcepointR11QTextStream could not
be
>located in the dynamic link library QtCore4.dll.

>is it an issue with my python executable? Any workarounds.....

>Neo

Hmmm...i just tried it and it is working correctly. Did you tried it like
this:
pyuic4 -o calc.py calculatorform.py

The command is "pyuic4 -o destfile.py sourcefile.py"


??




More information about the PyQt mailing list