Advertisement
teslariu

pack_tkinter

Sep 15th, 2023
955
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. import tkinter as tk
  5. from tkinter import ttk
  6.  
  7.  
  8.  
  9.  
  10. ventana = tk.Tk()
  11. ventana.title("Posicionamiento pack")
  12. ventana.config()
  13.  
  14. caja = ttk.Entry()
  15. caja.pack(side=tk.LEFT)
  16.  
  17.  
  18. boton = ttk.Button(text="HOLA")
  19. boton.pack(side=tk.RIGHT, fill=tk.BOTH)
  20.  
  21.  
  22.  
  23. boton2 = ttk.Button(text="OTRO BOTON")
  24. boton2.pack(before=caja, side=tk.LEFT)
  25.  
  26.  
  27. boton3 = ttk.Button(text="JAJA")
  28. boton3.pack(after=boton, padx=30, pady=50, ipadx=100, ipady=40)
  29.  
  30.  
  31.  
  32. ventana.mainloop()
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement