This is just a concept that I haven’t actually programmed yet. I’m still learning the logic for Tkinter and I’m wondering how to Change button position based on the window size. The best thing I can compare my idea in my head is something similar to word wrap.
Original size:
<code>-------------------------------
| ----- ----- ----- |
| | | | | | | |
| | | | | | | |
| ----- ----- ----- |
| ----- ----- |
| | | | | |
| | | | | |
| ----- ----- |
-------------------------------
</code>
<code>-------------------------------
| ----- ----- ----- |
| | | | | | | |
| | | | | | | |
| ----- ----- ----- |
| ----- ----- |
| | | | | |
| | | | | |
| ----- ----- |
-------------------------------
</code>
-------------------------------
| ----- ----- ----- |
| | | | | | | |
| | | | | | | |
| ----- ----- ----- |
| ----- ----- |
| | | | | |
| | | | | |
| ----- ----- |
-------------------------------
Change Example 1:
<code>--------------------
| ----- ----- |
| | | | | |
| | | | | |
| ----- ----- |
| ----- ----- |
| | | | | |
| | | | | |
| ----- ----- |
| ----- |
| | | |
| | | |
| ----- |
--------------------
</code>
<code>--------------------
| ----- ----- |
| | | | | |
| | | | | |
| ----- ----- |
| ----- ----- |
| | | | | |
| | | | | |
| ----- ----- |
| ----- |
| | | |
| | | |
| ----- |
--------------------
</code>
--------------------
| ----- ----- |
| | | | | |
| | | | | |
| ----- ----- |
| ----- ----- |
| | | | | |
| | | | | |
| ----- ----- |
| ----- |
| | | |
| | | |
| ----- |
--------------------
Change Example 2:
<code>-----------------------------------------------
| ----- ----- ----- ----- ----- |
| | | | | | | | | | | |
| | | | | | | | | | | |
| ----- ----- ----- ----- ----- |
-----------------------------------------------
</code>
<code>-----------------------------------------------
| ----- ----- ----- ----- ----- |
| | | | | | | | | | | |
| | | | | | | | | | | |
| ----- ----- ----- ----- ----- |
-----------------------------------------------
</code>
-----------------------------------------------
| ----- ----- ----- ----- ----- |
| | | | | | | | | | | |
| | | | | | | | | | | |
| ----- ----- ----- ----- ----- |
-----------------------------------------------
Is there a way to do something like this?