0

I want to put the "Selecto a file to encrypt" on the left site, a try it separate too and it didn't work.

tk.Label(frame, text="Select a file to encrypt: ", fg="black").pack(padx=100, pady=100, side=tk.LEFT)
2
  • 2
    If you want to pack the label at the left side of the frame, remove padx=100. Commented Nov 20 at 15:18
  • Please edit your question to include a complete minimal reproducible example; that is, something we can run as-written to reproduce the problem and help debug. Commented Nov 20 at 16:04

1 Answer 1

0

side=tk.LEFT works in the space allocated by pack. You can use something like that

Label(root, text='text', anchor='w').pack(fill='both')

or using grid

label.grid(row=0, column=0, sticky="w")
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.