Arabic text entry issue in tkinter
Posted: Sun Mar 01, 2020 5:55 pm
My python3 code:
In Windows 10 the result is OK:

But in rPi the entry text is corrupted:

Code: Select all
from tkinter import * #importing Tkinter Library
import tkinter.messagebox
win = Tk()
def led1ON(): #defining function led1ON
print("button pressed") #to be printed on terminal
tkinter.messagebox.showinfo("عنوان", "سلام " + txt.get() + "!")
led1Button = Button(win, text = "کلیک", command = led1ON, height = 2, width =8 ) #setting button naming led1Button
led1Button.place(x=37, y=50) #button position for led1Button #commanding to button to led1ON function
lbl = Label(win, text="نام:")
lbl.place(x=25, y=25)
txt = Entry(win,width=10)
txt.insert(INSERT,'نام')
txt.place(x=100, y=25)
win.mainloop()But in rPi the entry text is corrupted: