Python Forum
Greek letters with .readline() and tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Greek letters with .readline() and tkinter
#4
The font used for printing to the console was set by your shell. It is not the font used by tk.
import tkinter as tk

root = tk.Tk()
label = tk.Label(root)
entry = tk.Entry(root)
print("Label font", label["font"])
print("Entry font", label["font"])
Output:
Label font TkDefaultFont Entry font TkTextFont
My guess is neither TkDefaultFont nor TkTextFont contain the characters you need. Look for fonts on your computer and find a font that does. Then set that as the font for your text widgets.
import tkinter as tk

root = tk.Tk()
label = tk.Label(root, font=("Times",))
entry = tk.Entry(root, font=("Helvetica",))
print("Label font", label["font"])
print("Entry font", entry["font"])
Output:
Label font Times Entry font Helvetica
Reply


Messages In This Thread
RE: Greek letters with .readline() and tkinter - by deanhystad - Mar-22-2023, 04:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pyserial Readline() conversion to array bprosman 1 1,962 Apr-11-2023, 12:44 AM
Last Post: deanhystad
Star Pyserial not reading serial.readline fast enough while using AccelStepper on Arduino MartyTinker 4 4,205 Mar-13-2023, 04:02 PM
Last Post: deanhystad
  readline.parse_and_bind() does not work in start-up script of Python interpreter zzzhhh 0 1,563 Jan-18-2022, 11:05 AM
Last Post: zzzhhh
  readline inside and outside functions paul18fr 2 2,085 May-20-2021, 01:15 PM
Last Post: csr
  TypeError: file must have 'read' and 'readline' attributes hobbyist 6 11,094 Jun-12-2020, 05:12 PM
Last Post: DreamingInsanity
  Collating ancient greek arbiel 8 4,129 Mar-29-2020, 06:19 PM
Last Post: snippsat
  problem with readline() schlundreflex 6 4,487 Nov-06-2019, 02:22 PM
Last Post: schlundreflex
  readline() and readlines() rpaskudniak 9 30,182 Nov-21-2017, 07:39 PM
Last Post: metulburr
  Empty variable when using print before readline fstefanov 3 3,696 Oct-23-2017, 02:22 AM
Last Post: fstefanov
  pySerial .readline() help AlexSneedMiller 1 14,537 Jan-23-2017, 01:16 PM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020