Skip to content

Commit

Permalink
feat Python Tkinter How To Resize Your App With The Sizegrip Widget C…
Browse files Browse the repository at this point in the history
…PMPLETE

Python Tkinter How To Resize Your App With The Sizegrip Widget COMPLETE

resolves: #
see also: #
  • Loading branch information
brian-emarquez committed Feb 20, 2021
1 parent 6c35b4b commit 5624768
Showing 1 changed file with 25 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,36 @@
# Cómo cambiar el tamaño de su aplicación con el widget de agarre de tamaño

from tkinter import *
from tkinter import filedialog
from tkinter import font
from tkinter import ttk

root = Tk()
root.title('HowToResizeYourAppWithTheSizegripWidget')
root.iconbitmap('Python Tkinter How To Resize Your App With The Sizegrip Widget/icons/document.ico')
root.geometry("1000x660")
root.geometry("400x300")

# Make the app resizeable
root.resizable(True, True)

my_frame2 = Frame(root, highlightbackground="gray", highlightthickness=1)
my_frame2.pack(pady=20)

my_label = Label(my_frame2, text="Hello World!",
font=("Helvetica", 32))
my_label.pack(pady=20, padx=20)

# Reconfigure our rows and olumns for grid
#root.columnconfigure(0, weight=1)
#root.rowconfigure(0, weight=1)

# Create a frame
my_frame = Frame(root, highlightbackground="gray", highlightthickness=1)
my_frame.pack(side="bottom", fill=X)

# Create sizegrip
my_sizegrip = ttk.Sizegrip(root)
my_sizegrip.pack(side="right", anchor=SE)

#my_sizegrip.grid(row=1, sticky=SE)


root.mainloop()

0 comments on commit 5624768

Please sign in to comment.