Skip to content

Commit

Permalink
window now changes with input size
Browse files Browse the repository at this point in the history
  • Loading branch information
Thinkseal authored Oct 28, 2024
1 parent 7ac7ed4 commit b3fe26a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion versions/gui_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def FlipedTextCopy(text):
pyperclip.copy(converter.reverse_text(converter.text_flip(text.get())))

def add_text(text_input):
x_size=int(9*len(text_input.get())+300)
root.geometry(f"{x_size}x{300}")
ttk.Label( text=converter.reverse_text(text_input.get()),justify="left").grid(sticky = W,row=2,column=2)
ttk.Label( text=converter.text_flip(text_input.get()),justify="left").grid(sticky = W,row=4,column=2)
ttk.Label( text=converter.enchant_text(text_input.get()),justify="left").grid(sticky = W,row=5,column=2)
Expand All @@ -25,7 +27,7 @@ def add_copy_buttons():
ico = Image.open('images/icon.ico')
photo = ImageTk.PhotoImage(ico)
root.wm_iconphoto(False, photo)
root.geometry("600x300")
root.geometry("300x300")
copy_icon = Image.open('images/content_copy.png')
copy_icon = ImageTk.PhotoImage(copy_icon)

Expand Down

0 comments on commit b3fe26a

Please sign in to comment.