[PyKDE] pyuic escaping apostrophes

Hollis hollis-lists at austin.rr.com
Mon Jun 18 17:21:44 BST 2001


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?

-Hollis




More information about the PyQt mailing list