Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite layout managers, but this time sucklessly #138

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

rdbende
Copy link
Member

@rdbende rdbende commented Apr 29, 2023

At least I can read it now

@rdbende
Copy link
Member Author

rdbende commented May 1, 2023

Ahh, grid is one of the best things in Tk, and I don't wanna ruin it.
Here's another cool grid wrapper thingy by @insolor: https://github.com/insolor/tk_grid_helper, and it gave me some ideas. I need to tinker with this a bit more.

@Moosems
Copy link
Collaborator

Moosems commented May 1, 2023

Lol you left a joke right open so I'm totally going to make it. You're going to t(k)in[t]er (Tkinter lol) with the idea?

@rdbende
Copy link
Member Author

rdbende commented May 7, 2023

Only grid for now

@Moosems
Copy link
Collaborator

Moosems commented May 7, 2023

The best layout manager only, of course. Grid really is awesome, just a hassle to learn. I would make it easier in some areas like the resizing issues I had with the Editor so its less confusing but Grid is just better.

@rdbende
Copy link
Member Author

rdbende commented May 7, 2023

I'll make a simple example so we can discuss the API

@rdbende
Copy link
Member Author

rdbende commented May 7, 2023

I'll make a simple example so we can discuss the API

And any suggestions are very welcome.

@Moosems
Copy link
Collaborator

Moosems commented May 7, 2023

What about a 2d list almost?

@Moosems
Copy link
Collaborator

Moosems commented May 7, 2023

Where each column and row has the same width and height.

@rdbende
Copy link
Member Author

rdbende commented May 7, 2023

Where each column and row has the same width and height.

???
Wdym?

@Moosems
Copy link
Collaborator

Moosems commented May 7, 2023

But default, all rows and columns have the same width and height unless changed and you specify the row and column count, then, when gridding individual widgets, you give a list of points (tuples).

@rdbende
Copy link
Member Author

rdbende commented May 7, 2023

But default, all rows and columns have the same width and height unless changed

I don't think it would be too useful tbh.

@Moosems
Copy link
Collaborator

Moosems commented May 7, 2023

I honestly hate having to always set row_configure and column_configure

@rdbende
Copy link
Member Author

rdbende commented May 23, 2023

@insolor, would you mind if I stole some of your ideas from tkinter_layout_helpers?

Apparently, tkinter_layout_helpers doesn't yet have a license.

@insolor
Copy link

insolor commented May 23, 2023

@rdbende yes, no problem. I planned to add MIT license, I just forgot to do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants