Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tkinter font style
#1
Here I have code:
Label(window_1, textvariable=display_alarm_switch, font=("Ticking Timebomb BB", 30), fg=colorfg, bg=colorbg).place(x=x_pos, y=y_pos)
It printed with italic style, I need change to regular, how? use style="regular" not work...
Reply
#2
I think you need to specify Regular in font name:
Label(window_1, textvariable=display_alarm_switch, font=("Ticking Timebomb BB REGULAR", 30), fg=colorfg, bg=colorbg).place(x=x_pos, y=y_pos)
Reply
#3
(Oct-24-2020, 07:16 PM)Larz60+ Wrote: I think you need to specify Regular in font name:
Label(window_1, textvariable=display_alarm_switch, font=("Ticking Timebomb BB REGULAR", 30), fg=colorfg, bg=colorbg).place(x=x_pos, y=y_pos)

Ah Yes, Thanks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Print text with big font and style tomtom 5 13,766 Mar-03-2022, 01:29 AM
Last Post: tomtom
  how to change the font style on Linux? laylalogan337 2 1,905 Aug-10-2021, 04:31 PM
Last Post: deanhystad
  Load external font and does not show font in the window ATARI_LIVE 16 7,981 Feb-05-2021, 10:36 PM
Last Post: EthanPayne
  Add DSIG to TTF font using ttx font tool Adrian 1 3,738 Nov-11-2017, 12:05 PM
Last Post: Adrian

Forum Jump:

User Panel Messages

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