User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 423,135 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,163 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums

Help needed for displaying extended charactors in Tk()

Join Date: Oct 2004
Location: Mojave Desert
Posts: 2,461
Reputation: vegaseat will become famous soon enough vegaseat will become famous soon enough 
Rep Power: 10
Solved Threads: 176
Moderator
vegaseat's Avatar
vegaseat vegaseat is offline Offline
Kickbutt Moderator

Re: Help needed for displaying extended charactors in Tk()

  #6  
Apr 2nd, 2007
Originally Posted by woooee View Post
Try a="itself ‘a parody’."
The problem is that US keyboards don't have a left and right singlequote character, so you need to escape the hex value of the character. This works in Python ...
  1. x = 'itself \x91a parody\x92.'
  2. print x # itself ‘a parody’.
If you feed string x to Tkinter's tcl language you get this --> "itself ‘a parody’."

In the USA at least it looks like you have to use the alt-key and keypad thingy and type 0145 and 0146 to construct your string. I do that with spanish characters.
Last edited by vegaseat : Apr 2nd, 2007 at 8:27 pm.
May 'the Google' be with you!
Reply With Quote  
All times are GMT -4. The time now is 7:04 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC