Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/10/2009, 20:04
Avatar de razpeitia
razpeitia
Moderador
 
Fecha de Ingreso: marzo-2005
Ubicación: Monterrey, México
Mensajes: 7.321
Antigüedad: 19 años, 1 mes
Puntos: 1360
Respuesta: Como obtener el texto de un witget Text() de Tkinter

Código python:
Ver original
  1. from Tkinter import *
  2.  
  3. root = Tk()
  4. def callback(event):
  5.     print entry.get()
  6.  
  7. frame = Frame(root)
  8. label = Label(frame, text="Hola mundo")
  9. entry = Entry(frame)
  10. button = Button(frame, text="Aceptar")
  11. button.bind("<Button-1>", callback)
  12.  
  13. label.pack()
  14. entry.pack()
  15. button.pack()
  16. frame.pack()
  17.  
  18. root.mainloop()
Un poco mas de lectura a la documentación te vendría mal