#πŸ”’ tkinter element size issues?

39 messages Β· Page 1 of 1 (latest)

languid helm
#

for some reason the half-elf subrace buttons are tiny slivers with no text on it relative to the other race buttons. what have i done wrong? im new to tkinter:

https://paste.pythondiscord.com/BKWA

zinc duneBOT
#

@languid helm

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

midnight flax
#

wanna just hop on a call? id have no issue helping u

#

im misunderstanding where is ur issue

languid helm
#

@midnight flax as you can see the sub-races buttons pop up but they arent the same size as the other race buttons nor do they display text: they should say half wood elf, half dark elf, half high elf

#

they appear as 3 tiny slivers next ot half elf

midnight flax
#

i dont belive having from tktinker matters tbh and i also dont understand why u arent using grid on tk to organize all of those buttons

midnight flax
#

look it up on chat gpt to be honest might be easier to u

languid helm
midnight flax
#

in this regard ur saying they arent the same size

#

??

languid helm
#

@midnight flax

#

they should be the same size as every other button

#

they are tiny slivers

midnight flax
#

ohh yea i thought that was a scroll bar lmao

languid helm
#

nope lol

midnight flax
#

send me a flic of ur button code and how ur formating their postion thats the issue ur facing there

languid helm
#

i have the full paste at the top

#

what is a flic?

midnight flax
#

picture

#

just a quick copy paste

#

resultsframe = tk.Frame(root, padx=10, pady=10)
resultsframe.pack(side=tk.RIGHT, fill=tk.BOTH, expand=True)

#initialize progress bar
progress_bar = ttk.Progressbar(resultsframe, orient='horizontal', mode='indeterminate', length=280)
progress_bar.pack(side=tk.TOP, pady=10)

clear_button = tk.Button(resultsframe, text="Clear View", command=clear_view)
clear_button.pack(side=tk.LEFT)
clear_button.pack(side=tk.TOP)

zinc duneBOT
#

Hey @midnight flax!

It looks like you're trying to paste code into this channel.

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:
```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
You can **edit your original message** to correct your code block.
midnight flax
#

see how it says clear_button .pack (side = tk left or top

#

thats how buttons should be formatted

#

it may help u massivelly

languid helm
#

idgi, ill read tkinter documentation and ask 4o to reformat entire script for gridding

#

i tried to offload the gui to gpt and im paying for it

#

thanks for your hlep

cedar hamlet
#

I wouldn't offload any code to GPT

#

Especially anything you don't understand.

midnight flax
#

gridding is helpful i dont useually do it tbh

#

but go for it

cedar hamlet
#

from the horses mouth as it were

zinc duneBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.