Hi list,
I'm learning pd (so far the only serious thing I did is a video source selector for live/playback/blackout display cropped in a circle), so I spend a lot of time in the help browser. Today I ended up frustrated by how small is that window. So I modified help_window.tcl to be able to resize it vertically. Then I turned it in a guiplugin.
Here's the oh-so-complex code as a guiplugin:
# let the user decide the size of the help browser bind HelpBrowser <Map> { wm resizable .help_browser 0 1 pack .help_browser.frame -expand 1 }
(Just wondering: why is this window fixed size in the first place ?)
Also I had a more general question about these plugins: is/will there be some place to centralize them or should every bugger like me post snippets on the list ?
Cheers,
Nice, I think those changes could be incorporated in the original
rather than being a plugin. Even better would be sorting out the
horizontal resizing!
Submit it to the patch tracker when you are ready for it to be included: http://sourceforge.net/tracker2/?func=browse&group_id=55736&atid=478...
.hc
On Mar 25, 2011, at 4:09 PM, Charles Goyard wrote:
Hi list,
I'm learning pd (so far the only serious thing I did is a video source selector for live/playback/blackout display cropped in a circle), so I spend a lot of time in the help browser. Today I ended up frustrated
by how small is that window. So I modified help_window.tcl to be able to resize it vertically. Then I turned it in a guiplugin.Here's the oh-so-complex code as a guiplugin:
# let the user decide the size of the help browser bind HelpBrowser <Map> { wm resizable .help_browser 0 1 pack .help_browser.frame -expand 1 }
(Just wondering: why is this window fixed size in the first place ?)
Also I had a more general question about these plugins: is/will
there be some place to centralize them or should every bugger like me post snippets on the list ?Cheers,
-- Charlot
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
¡El pueblo unido jamás será vencido!
Hi Hans,
if "sorting out the horizontal resizing" is fixing the ugly scrollbars under Linux, it would take a little more time. If it's just enabling the resizing, all it takes is changing "0 1" in "1 1". It seems windows and osx don't produce ugly scrollbars. Maybe desktops like gnome and kde look good too because of theming.
In the latter case the patch is ready against HEAD :)
Hans-Christoph Steiner wrote:
Nice, I think those changes could be incorporated in the original rather than being a plugin. Even better would be sorting out the horizontal resizing!
Submit it to the patch tracker when you are ready for it to be included: http://sourceforge.net/tracker2/?func=browse&group_id=55736&atid=478...
Well, the horizontal resizing behaves weirdly too, adding a bunch of
padding that is totally unnecessary, for example.
.hc
On Mar 25, 2011, at 5:54 PM, Charles Goyard wrote:
Hi Hans,
if "sorting out the horizontal resizing" is fixing the ugly scrollbars under Linux, it would take a little more time. If it's just enabling
the resizing, all it takes is changing "0 1" in "1 1". It seems windows
and osx don't produce ugly scrollbars. Maybe desktops like gnome and kde look good too because of theming.In the latter case the patch is ready against HEAD :)
Hans-Christoph Steiner wrote:
Nice, I think those changes could be incorporated in the original rather than being a plugin. Even better would be sorting out the horizontal resizing!
Submit it to the patch tracker when you are ready for it to be
included: http://sourceforge.net/tracker2/?func=browse&group_id=55736&atid=478...
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
All mankind is of one author, and is one volume; when one man dies,
one chapter is not torn out of the book, but translated into a better
language; and every chapter must be so translated.... -John Donne
Hi Hans,
Hans-Christoph Steiner wrote:
Well, the horizontal resizing behaves weirdly too, adding a bunch of padding that is totally unnecessary, for example.
Yes, I fixed it already (with a separate pack for the listbox and the scrollbar). However on my computer, if I manually resize the window horizontally, the window does not automaticaly fit to the number of listboxes anymore. That makes sense, since tk can't decide whever the width is for the window or for the number of columns currently displayed. Forcing the horizontal size back to the initial one could be frustrating too. Adding an horizontal scrollbar sucks (sounds like OSX Finder).
I think I can come up with an in-between solution, such as when horizontally resizing, decide each new panel will have the width of (window hsize / displayed listboxes).
I'm also working on this: # TODO enter and up/down/left/right arrow key bindings for nav
In the meantime, I submitted a very short patch that just unlocks the size.
On Mar 26, 2011, at 7:39 AM, Charles Goyard wrote:
Hi Hans,
Hans-Christoph Steiner wrote:
Well, the horizontal resizing behaves weirdly too, adding a bunch of padding that is totally unnecessary, for example.
Yes, I fixed it already (with a separate pack for the listbox and the scrollbar). However on my computer, if I manually resize the window horizontally, the window does not automaticaly fit to the number of listboxes anymore. That makes sense, since tk can't decide whever the width is for the window or for the number of columns currently displayed. Forcing the horizontal size back to the initial one could
be frustrating too. Adding an horizontal scrollbar sucks (sounds like OSX Finder).I think I can come up with an in-between solution, such as when horizontally resizing, decide each new panel will have the width of (window hsize / displayed listboxes).
I'm also working on this: # TODO enter and up/down/left/right arrow key bindings for nav
In the meantime, I submitted a very short patch that just unlocks the size.
Any luck with the key bindings for the Help Browser?
.hc
"Making boring techno music is really easy with modern tools, but with
live coding, boring techno is much harder." - Chris McCormick