[PyKDE] pyuic4 generates invalid source code for files without translatable strings

Phil Thompson phil at riverbankcomputing.co.uk
Sat Oct 21 15:20:38 BST 2006

On Saturday 21 October 2006 2:37 pm, Lukáš Lalinský wrote:
> If I have an UI file without any translatable strings, pyuic4 generates
> method retranslateUi without a body:
>     def retranslateUi(self, %s):
> which causes is a syntax error. Patch that adds a 'pass' in such situations
> attached.


More information about the PyQt mailing list