teslariu

pack_tkINTER

Jun 2nd, 2021
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # posicionamiento pack
  5.  
  6. import tkinter as tk
  7. from tkinter import ttk
  8.  
  9. ventana = tk.Tk()
  10. ventana.title("Posicionamiento grid")
  11. ventana.config(bg="Light Steel Blue")
  12.  
  13. entry = ttk.Entry()
  14. entry.pack(side=tk.LEFT)
  15.  
  16. boton = ttk.Button(text="Hola")
  17. boton.pack(padx=30, pady=50, ipadx=10, ipady=20, expand=True, fill=tk.BOTH)
  18.  
  19.  
  20. entry = ttk.Entry()
  21. entry.pack()
  22.  
  23. ventana.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment