RSS Forums RSS
Please support our Python advertiser: Programming Forums

Help needed for displaying extended charactors in Tk()

Join Date: Apr 2007
Posts: 2
Reputation: dav_yip is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dav_yip dav_yip is offline Offline
Newbie Poster

Help needed for displaying extended charactors in Tk()

  #1  
Apr 1st, 2007
I have a problem is phasing the extended charactors in TK(). Any help would be apreciated.

a='itself ‘a parody’.'
>>> a "return"
'itself \x91a parody\x92.'

>>> def display(data):

root = Tk()
scrollbar = Scrollbar(root)
myTextWidget= Text(root,yscrollcommand=scrollbar.set)
myTextWidget.insert(0.0, data)
scrollbar.config(command=myTextWidget.yview)
scrollbar.pack(side=RIGHT, fill=Y)
myTextWidget.pack(side=LEFT, expand=0, fill=BOTH)


>>> display(a)

I ended up geting " itself ムa parodyメ." as my result and I need the result to be "itself ‘a parody’."
AddThis Social Bookmark Button
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:06 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC