Hm, I'm not having much luck. Apparently my tooltip and default font is
Lucida Grande when running the code inside Wing, which should be able to
display quotation marks. I tried changing the font to Verdana, as that
is what my host application is using (where I get the corrcet
characters), but to no avail.
I tried using QtGui.QToolTip.setFont() and QApplication().setFont() but
I was still left with the wrong characters.
Any more ideas?
Cheers,
frank
On 3/03/16 1:45 pm, Frank Rueter | OHUfx wrote:
Thanks guys.
>>That would imply that your tooltip uses a different default font.
Aha, that makes perfect sense, thank you!
I'm currently on OSX using Wing as my IDE. When I ran this code inside
a host application, it worked fine (because it changes the default font).
I will verify that though before moving on. Text encoding/decoding
always confuses me (I hardly have to deal with it, so there is no
routine) and I want to get it right this time.
Cheers,
frank
On 03/03/2016 06:26 AM, Tim Roberts wrote:
Sebastian Elsner | RISE wrote:
Unicode is tricky, it bites me every time. This works:
It's not that hard. There are two possibilities. Either the setTool
function does not accept Unicode strings, or the default tool tip
font does not include those extended characters.
Please note, the .py file actually has to be saved/encoded as utf-8.
You need to do this via your editor's save/convert function.
Actually, it doesn't. There are no characters in his file beyond the
base ASCII set, except for the one character in a comment, so the
file coding is irrelevant. If this worked for you, then his original
code would have worked for you also. That would imply that your
tooltip uses a different default font. No one here has mentioned
what operating systems they are using; that makes a difference.
--
Tim Roberts,[email protected]
Providenza & Boekelheide, Inc.
_______________________________________________
PySide mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/pyside
_______________________________________________
PySide mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/pyside
--
ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing
<http://ohufx.com/index.php/vfx-compositing> | *workflow customisation
and consulting <http://ohufx.com/index.php/vfx-customising>* *
_______________________________________________
PySide mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/pyside