Python Forum
[Tkinter] Trying to change font size w/o changing button size
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Trying to change font size w/o changing button size
#4
if you use the variables, you control the width and height, it will become whatever size you specify
I am talking about width and height in the Button widget definition:
button1 = Button(frame2, text='Grrrrr', font = myFont, width=100, height=25)
I just guessed at sizes, you will have to adjust
Reply


Messages In This Thread
RE: Trying to change font size w/o changing button size - by Larz60+ - Aug-05-2020, 01:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Horizontal extension of widgets + frame size adapted to content Fab117 3 342 Feb-22-2024, 06:54 PM
Last Post: deanhystad
  Can't change the colour of Tk button text Pilover 6 14,505 Nov-15-2022, 10:11 PM
Last Post: woooee
  [PyQt] QVBoxLayout default (minimum) size malonn 5 4,190 Oct-13-2022, 04:20 PM
Last Post: malonn
  [WxPython] [SOLVED] How to change button label? Winfried 3 2,020 May-31-2022, 06:37 PM
Last Post: Winfried
  [Tkinter] canvas size DPaul 2 5,687 May-04-2022, 12:34 PM
Last Post: DPaul
  Can't get tkinter button to change color based on changes in data dford 4 3,364 Feb-13-2022, 01:57 PM
Last Post: dford
  how to change font size barryjo 4 3,763 Jan-26-2022, 08:46 PM
Last Post: menator01
  [Tkinter] Trouble changing Font within tkinter frame title AnotherSam 1 4,012 Sep-30-2021, 05:57 PM
Last Post: menator01
  [Tkinter] changing and getting value through button niski1996 2 1,772 Aug-24-2021, 04:44 PM
Last Post: niski1996
  Tkinter menu font size -method to change tonycat 2 7,709 Oct-11-2020, 02:43 AM
Last Post: tonycat

Forum Jump:

User Panel Messages

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