From: EricT <tw...@gm...> - 2025-04-12 04:48:58
|
With 9.0 out the door, I was thinking that this might be a good time to consider some of the "missing" pieces in the tk and ttk widget set. I think the most useful missing piece would be a built in scrollable frame and/or toplevel. If there's a TIP that has already requested this, then feel free to ignore this email. And if perchance, it's already there, then perhaps it just would need to be more prominent in the documentation. At least, I couldn't find one. When I needed a scrollable frame, I found there are many versions on the wiki, but sometimes having too many choices makes the task harder. There once were also several notebook widgets, and the one I chose, in bwidgets, ended up not being the best choice. Had I known about ttk::notebook, I would certainly have looked at that first. Anyway, I think the one at https://wiki.tcl-lang.org/page/A+scrolled+frame by Paul Walton is a quite good one, although I didn't quite understand why I needed two frames in the example. There's also apparently a modified version just below it as well. And that's the one I tried because it also had 2 smallish examples. Paul's version is nice in that you can pack the scrollable frame, but the scrollable items can be packed, grid'd or placed. I suspect you could grid the frame as well, but I wanted to pack it. Bottom line, I believe having this widget in the Tk core would be quite useful, and it might even just be added there in script form. But having one supported version that was in the "manual" would be great and would also provide leverage for all the other languages that use the Tk toolkit. thanks Eric |