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
  Load external font and does not show font in the window ATARI_LIVE 16 2,054 Feb-05-2021, 10:36 PM
Last Post: EthanPayne
  C style strings deanhystad 2 774 May-16-2020, 02:57 PM
Last Post: Larz60+
  How to generate a log in a list style? wagnergt12 5 916 Apr-22-2020, 12:47 PM
Last Post: buran
  Type hints and style MaxPowers 1 745 Feb-19-2020, 06:56 PM
Last Post: micseydel
  Is this good style? league55 3 1,575 Jan-14-2018, 04:25 PM
Last Post: Gribouillis
  Add DSIG to TTF font using ttx font tool Adrian 1 2,084 Nov-11-2017, 12:05 PM
Last Post: Adrian
  pdf sms alternating conversation style sdcaliber 4 2,935 Apr-20-2017, 05:20 AM
Last Post: sdcaliber

Forum Jump:

User Panel Messages

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