[text] boxes

Viewer

  1. import tkinter as tk
  2.  
  3. # Crear una ventana principal
  4. root = tk.Tk()
  5.  
  6. # Crear dos casillas para seleccionar SI/NO
  7. si_checkbutton = tk.Checkbutton(root, text="SI")
  8. no_checkbutton = tk.Checkbutton(root, text="NO")
  9.  
  10. # Empacar las casillas en la ventana principal
  11. si_checkbutton.pack()
  12. no_checkbutton.pack()
  13.  
  14. # Ejecutar la aplicación
  15. root.mainloop()
  16.  

Editor

You can edit this paste and save as new: