Python Forum
Tkinter menu font size -method to change
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tkinter menu font size -method to change
#1
Hello,

        How can I change the Tkinter menu font size, I can change the font size of other components , except menu Huh Huh Huh
 
 
import tkinter as tk
from tkinter import ttk
from tkinter import *
import tkinter.font as tkfont
root = tk.Tk()
root.option_add("*Font", ('Verdana', 30))
label = tk.Label(root, text = "Hello World")
label.pack(padx = 5, pady = 5)
menubar = tk.Menu(root)
menubar.add_command(label="Python", command=lambda: print("Python"))
menubar.add_command(label="Quit", command=root.destroy)
root.config(menu=menubar)

root.mainloop()
thank!
Reply


Messages In This Thread
Tkinter menu font size -method to change - by tonycat - Oct-10-2020, 10:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] tkinter.Menu – How to make text-variable? Sir 3 823 Mar-10-2021, 04:21 PM
Last Post: Sir
  tkinter -- after() method and return from function -- (python 3) Nick_tkinter 12 448 Feb-20-2021, 10:26 PM
Last Post: Nick_tkinter
  Tkinter - How can I change the default Notebook border color? TurboC 4 2,198 Oct-06-2020, 10:35 PM
Last Post: TurboC
  tkinter get method is not accepting value when called by function jagasrik 1 399 Sep-16-2020, 05:28 AM
Last Post: Yoriz
  tkinter get method is not accepting value jagasrik 4 405 Sep-15-2020, 05:41 PM
Last Post: jagasrik
  [Tkinter] How to Print a list = ['a','b','c'], using tkinter along with a custom font? Pleiades 2 418 Sep-15-2020, 03:54 PM
Last Post: Pleiades
  [Tkinter] Trying to change font size w/o changing button size python63 3 3,451 Aug-05-2020, 01:04 AM
Last Post: Larz60+
  [tkinter] color change for hovering over button teacher 4 2,162 Jul-04-2020, 06:33 AM
Last Post: teacher
  [PyQt] Increase text size and change color based on temp pav1983 5 672 Jun-22-2020, 10:52 PM
Last Post: menator01
  TKINTER - Change font color for night or day Ayckinn 2 1,114 May-24-2020, 09:25 PM
Last Post: Ayckinn

Forum Jump:

User Panel Messages

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