Please support our Python advertiser: Programming Forums
Views: 1592 | Replies: 6
•
•
Join Date: Apr 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
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’."
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’."
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)






Threaded Mode