Set menu item font : Menu « GUI Tk « Python

Python
1. 2D
2. Application
3. Buildin Function
4. Class
5. Data Structure
6. Data Type
7. Development
8. Dictionary
9. Event
10. Exception
11. File
12. Function
13. GUI Pmw
14. GUI Tk
15. Language Basics
16. List
17. Math
18. Network
19. String
20. System
21. Thread
22. Tuple
23. Utility
24. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Python » GUI Tk » MenuScreenshots 
Set menu item font

from Tkinter import *

class TestMenu:
    def __init__(self, master):
  self.master = master
  self.menubar = Menu(self.master)

        self.cmdmenu = Menu(self.menubar)
        self.cmdmenu.add_command(label='Wild Font', underline=0,
                         font=('Tempus Sans ITC', 14))
        self.cmdmenu.add('separator')
        self.cmdmenu.add_command(label='Quit', underline=0
                                 background='white', activebackground='green', 
                                 command=self.master.quit)

        self.unused = Menu(self.menubar)
        
        self.menubar.add_cascade(label="Button Command", menu=self.cmdmenu)

  self.top = Toplevel(menu=self.menubar, width=500, relief=RAISED,
                            borderwidth=2)

def main():
    root = Tk()
    root.withdraw()
    app = TestMenu(root)
    root.mainloop()

if __name__ == '__main__':
    main()


           
       
Related examples in the same category
1. A big menu bar
2. Set up menu and add action to it
3. Disable a menu itemDisable a menu item
4. Menu item mouse on (active) foreground colorMenu item mouse on (active) foreground color
5. Underline for menu item textUnderline for menu item text
6. Menu separatorMenu separator
7. Cascade MenuCascade Menu
8. Disable a menuDisable a menu
9. Creating a small menuCreating a small menu
10. Menu separator 2 and menu action
11. Menu actionMenu action
12. Add menu to a windowAdd menu to a window
13. A Simple Form with Menu
14. Three Menu inside a formThree Menu inside a form
15. Framework for a single document interfaceFramework for a single document interface
16. 3 popup windows with menus3 popup windows with menus
17. Menu/tool bars packed before middleMenu/tool bars packed before middle
w_w___w___.j__ava___2___s__.___c___om___ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.