#π tkinter element size issues?
39 messages Β· Page 1 of 1 (latest)
@languid helm
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.
wanna just hop on a call? id have no issue helping u
im misunderstanding where is ur issue
@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
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
im new to GUI
look it up on chat gpt to be honest might be easier to u
i have, this was my end point. ill try to grid it out
i dont see what ur refering to
in this regard ur saying they arent the same size
??
@midnight flax
they should be the same size as every other button
they are tiny slivers
ohh yea i thought that was a scroll bar lmao
nope lol
send me a flic of ur button code and how ur formating their postion thats the issue ur facing there
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)
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.
see how it says clear_button .pack (side = tk left or top
thats how buttons should be formatted
it may help u massivelly
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
https://tkdocs.com/tutorial/grid.html is one of the best tutorials I've found about it.
The Grid Geometry Manager: Part of a Modern Tk Tutorial for Python, Tcl, Ruby, and Perl
from the horses mouth as it were
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.