Advertisement
teslariu

pac

Jun 19th, 2021
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # PACK
  5.  
  6. import tkinter as tk
  7. from tkinter import ttk
  8.  
  9. ventana = tk.Tk()
  10. ventana.title("Grid")
  11. ventana.config(width=400, height=600)
  12.  
  13. caja = ttk.Entry()
  14. caja.pack(expand=True, fill=tk.BOTH)
  15.  
  16. boton = ttk.Button(text='HOLA')
  17. boton.pack(padx=50, pady=75, ipadx=50, ipady=100)
  18.  
  19. label = ttk.Label(text="CHAU")
  20. label.pack(before=boton)
  21.  
  22.  
  23.  
  24.  
  25. ventana.mainloop()
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement