>-----Mensaje original-----
>De: Spectrum Cuarenta y ocho k <s_...@yahoo.com>
>Reply-to: La lista de python en castellano <python-es@python.org>
>Para: python-es@python.org
>Asunto: [Python-es] pestañas en interfaz gráfica con tkinter
>Fecha: Thu, 3 Feb 2011 02:53:07 -0800 (PST)

>http://www.java2s.com/Code/PythonImages/TkinterCheckbuttoninPmwGroup.PNG

Si se puede pero tienes que trabajar con el modulo ttk que viene con la
distribucion de Pyhton 2.7 en adelante.
Active Python viene con un instalador para Windows y Linux.

Aquí un ejemplo:

import Tkinter
import ttk

master = Tkinter.Tk()

notebook = ttk.Notebook(master)
notebook.pack(fill='both', expand='yes')
frame1 = ttk.Frame(notebook)
frame2 = ttk.Frame(notebook)

notebook.add(frame1, text='Uno')
notebook.add(frame2, text='Uno')


master.geometry('200x200')
master.mainloop()


Saludos.

Cristian Abarzúa F

_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a