在Python Tkinter中反转阿拉伯文本

时间:2018-06-30 18:32:33

标签: python-2.7 tkinter

我正在尝试在Tkinter程序中显示阿拉伯文本,Windows似乎正确显示了它们,但是由于某种原因在Kali Linux中却被反转了。

test.py文件内容:

# -*- coding: utf-8 -*-

from Tkinter import *

import Tkinter
import platform

root = Tk()

Label(root, text = "Python version: %s" % platform.python_version()).pack()
Label(root, text = "Tkinter version: %d" % Tkinter.TkVersion).pack()
Label(root, text = "العربية").pack()

root.mainloop()

Windows 10专业版的结果:

enter image description here

在Kali Linux中的结果:

enter image description here

相同的Python和Tkinter版本,但结果不同,有人知道其背后的确切原因吗?

0 个答案:

没有答案