From: Patrick M. <dus...@gm...> - 2025-04-12 11:07:40
|
Hello, I agree, and I'd like to take this opportunity to say, I think core Tk is missing some features that might be considered basic today, which other competing GUI toolkits probably have built in. I'd suggest that having these features in the core might be a good idea: - scrollable widget containers / scrollable frames - drag and drop I recently made a small utility that needed drag n drop. I had to load an extension for that, and it complicated getting it to work across platforms. I think I got it working on Linux and windows but not macOS. Regards, PM On Sat, 12 Apr 2025, 05:49 EricT, <tw...@gm...> wrote: > 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 > > _______________________________________________ > Tcl-Core mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-core > |