I set the font size of the entry of tkinter to be large.

When entering double-byte characters, the size does not match the entry before pressing the Enter key as shown in the attached image. Is there a way to match it?
(If i press the Enter key to confirm, the font size set for the entry will be used.)

Before pressing Enter

After pressing Enter

Source code

import tkinter as tk
win = tk.Tk ()
win.geometry ("500x300")
entry = tk.Entry (win, font = ("", 30))
entry.grid ()
win.mainloop ()
  • Answer # 1

    If you use tkinter on Windows, you will use IME for Japanese conversion.

    Since it is not designed to control the character string being converted by IME on the tkinter side (like the inline input of a word processor application), the size of the character being converted cannot be set on the tkinter side.