From: Kevin W. <kw...@co...> - 2025-04-12 14:35:54
|
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><img width="1" height="1" src='https://fedbdhd.r.bh.d.sendibt3.com/tr/op/ReCj7X0JYPs1CXaHKJmSTNvaxHHnsYM-gBK2b_20Gr5LaWxCMlXgNRupM_3LArz-mceWhgm8s1StxKMatwXgjYTkFhJsBEEPbROLAmvYfehZzMRSDqht512Ed35ZTaUgpJdMgAi4fVZL3hGR6ui-y0750FQ89Tx7tLR_KfSHwaFPrQmOOAtDPqThg7_k6J_zv9HlXb3KYvbSQMKLM-NdgBsNLtn9vSni' /><div dir="ltr"></div><div dir="ltr">TkDND is a great extension for native drag and drop. The Windows code is written in C++ which would be hard to include in the core. </div><div dir="ltr"><br><blockquote type="cite">On Apr 12, 2025, at 7:08 AM, Patrick May <dus...@gm...> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="auto">Hello, <div dir="auto"><br><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">I'd suggest that having these features in the core might be a good idea:</div><div dir="auto"><br></div><div dir="auto">- scrollable widget containers / scrollable frames</div><div dir="auto"><br></div><div dir="auto">- drag and drop</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">Regards, PM</div><div dir="auto"><br></div></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, 12 Apr 2025, 05:49 EricT, <<a href="mailto:tw...@gm...">tw...@gm...</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"> <pre style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:"Consolas";font-size:14pt;font-weight:normal;font-style:normal;text-decoration-line:none;white-space:pre-wrap">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 <span style="text-decoration-line:underline;text-decoration-color:rgb(255,0,0);text-decoration-style:wavy">tk</span> and <span style="text-decoration-line:underline;text-decoration-color:rgb(255,0,0);text-decoration-style:wavy">ttk</span> widget set. I think the most useful missing piece would be a built in scrollable frame and/or <span style="text-decoration-line:underline;text-decoration-color:rgb(255,0,0);text-decoration-style:wavy">toplevel</span>. 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 <span style="text-decoration-line:underline;text-decoration-color:rgb(255,0,0);text-decoration-style:wavy">wiki</span>, but sometimes having too many choices makes the task harder. There once were also several notebook widgets, and the one I chose, in <span style="text-decoration-line:underline;text-decoration-color:rgb(255,0,0);text-decoration-style:wavy">bwidgets</span>, ended up not being the best choice. Had I known about <span style="text-decoration-line:underline;text-decoration-color:rgb(255,0,0);text-decoration-style:wavy">ttk</span>::notebook, I would certainly have looked at that first. Anyway, I think the one at <span style="color:rgb(0,96,224);text-decoration-line:underline;text-decoration-style:solid"><a href="https://fedbdhd.r.bh.d.sendibt3.com/tr/cl/fiiJnUxvXfLT2CAdW-Fw-5scZTURdZpZ1NZ_pNIHd8l1V8cK7AoUI5YZdFrf_qEveNCLD51pDCbkjS76WYXbwpAFsbwBhnIZijzTsfeGouDZ9TdCE6XtOfFIyvxzHEofn30Xfgg3I7uiJSHeEKusACcQr1mjJpakX7nUOn8HglGBGp-_yx_atk3-4qt5-6WyOHF1WsVMfMWBWc1ER6ZgH-OP5gOJRsMeuo9FVHd_tmSOz0isRkKki2gUSHIT1EcNZQbEkrdVBXnMQMjRxqsDpw2AKlCIEjnhjjhtHwRAPlPZJ71hAjJu15wV6sUN" target="_blank" rel="noreferrer">https://wiki.tcl-lang.org/page/A+scrolled+frame</a></span> 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, <span style="text-decoration-line:underline;text-decoration-color:rgb(255,0,0);text-decoration-style:wavy">grid'd</span> 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 <span style="text-decoration-line:underline;text-decoration-color:rgb(255,0,0);text-decoration-style:wavy">Tk</span> toolkit. thanks Eric</pre> </div> _______________________________________________<br> Tcl-Core mailing list<br> <a href="mailto:Tcl...@li..." target="_blank" rel="noreferrer">Tcl...@li...</a><br> <a href="https://fedbdhd.r.bh.d.sendibt3.com/tr/cl/zt2DZT5g4AUDjz8jpUEFvjKQam552LAoYJ7BFljaIdCgP5t0BUiin7cnpWutsOztiZiMjVQ7DX8VY50AyjErlhiZBnZiXHTlP0OVN5TWUAHgL2gGiDbda-xkulSYFWg3P_abMi4HFdHrWWuOvXIshUzU3e88yLorvqOrNJKhYANLs8E9VZQbQfOIMSshDznpplVWU1-YCMMpAgGWbWtkC2Qx1-EImQswMW2AQt7mFqRGXNSqro6j3A2Kc29ZcqXxG3cPks8JogT8gmBwaYYSysgmyDDCm3Hb3v51Kho1PM6L_fNg-48hGOSe1Km0FK5DAw" rel="noreferrer noreferrer" target="_blank">https://lists.sourceforge.net/lists/listinfo/tcl-core</a><br> </blockquote></div> <span>_______________________________________________</span><br><span>Tcl-Core mailing list</span><br><span>Tcl...@li...</span><br><span>https://lists.sourceforge.net/lists/listinfo/tcl-core</span><br></div></blockquote></body></html> |