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

Controlling pane growth in Panedwindow #75

Open
hvds opened this issue Mar 2, 2021 · 1 comment
Open

Controlling pane growth in Panedwindow #75

hvds opened this issue Mar 2, 2021 · 1 comment

Comments

@hvds
Copy link

hvds commented Mar 2, 2021

Hi, as per my perlmonks node, I wish to create a two-pane Panedwindow in which the left (respectively: top) pane is the one to grow when the window gets resized rather than the default right/bottom pane. I see that Tk-8.5 added a stretch attribute that makes that possible; it also ships with ttk, which includes a variant Panedwindow supporting an even more powerful weight attribute.

The 8.4 behaviour seems to be rather hardwired: I think it is implemented in pTk/mTk/generic/tkPanedWindow.c:ArrangePanes(), but I haven't yet attempted to fully understand that code.

Assuming an update to support Tk-8.5 or later is not imminent, can you suggest a way of achieving the same effect with the existing Perl-Tk, short of duplicating pretty much all of the Panedwindow C, TCL and Perl code?

@chrstphrchvz
Copy link
Contributor

I think it may be feasible for Perl/Tk to incorporate support for -stretch. It was implemented in upstream Tcl/Tk as TIP 177: tcltk/tk@8fe41c5f51; hopefully there aren't too many bug fixes to have to backport as well.

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

No branches or pull requests

2 participants