ubuntu 18.04. tkinter text widget.

In Thai text, all characters above or below the letter are not displayed. Is there any solution, or explanation why? Output to the widget comes from a text file. All signs are visible in the file.

I did not understand, I figured out pyqt5, everything is shown there.

#! /usr/bin/python3 # -- coding: utf-8 -- from tkinter import * root = Tk() tx = Text(root, font=('times',20), width=30, height=10) tx.pack() tx.insert(1.0, 'ผู้ลี้ภัย') root.mainloop() 
  • one
    Not enough question: 1) code 2) text 3) screenshot (preferably) - gil9red
  • Thank. The original code is very large, but this one with the same result. #! / usr / bin / python3 # - - coding: utf-8 - - from tkinter * root = Tk () tx = Text (root, font = ('times', 20), width = 30, height = 10) tx .pack () tx.insert (1.0, 'ผู้ ลี้ ภัย') root.mainloop () As a result, the widget field will be - ผล ภ ย The first time I write a question, I didn’t figure out how to add a screenshot. - Chin
  • The code in the comment is poorly visible, so add it to the question via the править button (your code moved there). According to the screenshot, when you are in the question editor you will see the button for inserting an image, for example, you can paste a picture from the clipboard - gil9red
  • I (win7) have your code almost completely displayed in the text - the second squiggle is not displayed on the letter - gil9red
  • Thank. Unfortunately, the second squiggle is the most important in Thai. I wanted to understand whether it is realistic to show everything in tkinter. But it seems to have to do everything in pyqt5. - Chin

0