Curso de Programación en Python/Input-6
< Curso de Programación en Python
Ir a la navegación
Ir a la búsqueda
Revisión del 17:43 8 ene 2015 de Rrc (discusión | contribuciones)
Input-6.py
#!/usr/bin/python3
#-*-coding: utf-8 -*-
from tkinter import ttk
import tkinter
root = tkinter.Tk()
style = ttk.Style()
style.layout( "TMenubutton", [
( "Menubutton.background", None ),
( "Menubutton.button", {"children":
[( "Menubutton.focus", {"children":
[( "Menubutton.padding", {"children":
[( "Menubutton.label", {"side": "left", "expand": 1} )]
} )]
} )]
} ),
] )
mbtn = ttk.Menubutton( text='Mucho Texto' )
mbtn.pack()
root.mainloop()