[PyKDE] pyuic escaping apostrophes
Phil Thompson
phil at river-bank.demon.co.uk
Mon Jun 18 18:50:37 BST 2001
Hollis wrote:
>
> Small pyuic bug report...
>
> When using a tooltip string like
> <string>it's the button</string>
> pyuic will not escape the apostrophe, so the python result is
> ...( self.tr('it's the button') )
> which doesn't compile. If I add a backslash
> <string>it\'s the button</string>
> then the backslash IS escaped
> ...( self.tr('it\\'s the button') )
> which leaves me with the same problem as before.
>
> The summary is that you can't use apostrophes in Designer, at least not in
> tooltips (haven't checked elsewhere). Could they be escaped like backslashes?
Which version? It should have been fixed in the v2.5pre series.
Phil
More information about the PyQt
mailing list