Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rewrite layout managers, but this time sucklessly - #138

Draft
rdbende wants to merge 3 commits into
masterfrom
grid
Draft

Rewrite layout managers, but this time sucklessly#138
rdbende wants to merge 3 commits into
masterfrom
grid

Conversation

@rdbende

@rdbende rdbende commented Apr 29, 2023

Copy link
Copy Markdown
Member

At least I can read it now

@rdbende

rdbende commented May 1, 2023

Copy link
Copy Markdown
Member Author

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

Moosems commented May 1, 2023

Copy link
Copy Markdown
Collaborator

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

rdbende commented May 7, 2023

Copy link
Copy Markdown
Member Author

Only grid for now

@Moosems

Moosems commented May 7, 2023

Copy link
Copy Markdown
Collaborator

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

rdbende commented May 7, 2023

Copy link
Copy Markdown
Member Author

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

@rdbende

rdbende commented May 7, 2023

Copy link
Copy Markdown
Member Author

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

And any suggestions are very welcome.

@Moosems

Moosems commented May 7, 2023

Copy link
Copy Markdown
Collaborator

What about a 2d list almost?

@Moosems

Moosems commented May 7, 2023

Copy link
Copy Markdown
Collaborator

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

@rdbende

rdbende commented May 7, 2023

Copy link
Copy Markdown
Member Author

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

???
Wdym?

@Moosems

Moosems commented May 7, 2023

Copy link
Copy Markdown
Collaborator

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

rdbende commented May 7, 2023

Copy link
Copy Markdown
Member Author

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

Moosems commented May 7, 2023

Copy link
Copy Markdown
Collaborator

I honestly hate having to always set row_configure and column_configure

@rdbende

rdbende commented May 23, 2023

Copy link
Copy Markdown
Member Author

@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

insolor commented May 23, 2023

Copy link
Copy Markdown

@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.

3 participants