[PyKDE] pyuic usable? (and a small patch)
Phil Thompson
phil at river-bank.demon.co.uk
Fri Nov 23 11:48:33 GMT 2001
Wayne Larsen wrote:
>
> Hi,
>
> I downloaded PyQt-3.0 to try with qt3. To my
> (pleasant) surprise - everything in my small PyQt2 app
> ported over quite nicely. Excellent work getting
> PyQt3 out so quickly! Then, I started playing with
> the new features of qt3 - Designer in particular.
>
> It looks like they've done some good things with
> designer, to make it a pretty complete RAD
> environment. However, when I tried the pyuic command
> on a simple .ui file (stock application template),
> there were numerous errors.
>
> I dived in and fixed a few of them (see attached
> patch), but if this simple example will not work, I
> imagine there may be quite a few more errors. Has
> anyone been using pyuic?
Thanks for the patch, though it isn't quite right - I'll put the correct
one up on the website.
The pyuic for Qt3 is new and so hasn't had much testing. The pyuic for
Qt2 is mature and well tested.
> The next bug that I stopped on was the following
> snippet of code, where setLabel is not quite right :)
>
> self.toolBar = QToolBar("",self,Qt.DockTop)
>
> .setLabel(self.trUtf8("Tools"))
> self.fileNewAction.addTo(self.toolBar)
> self.fileOpenAction.addTo(self.toolBar)
> self.fileSaveAction.addTo(self.toolBar)
Send me the .ui file that the bad code is generated from.
Phil
More information about the PyQt
mailing list