3 ms·
But it's the fastest way to put together a GUI.
by forinti 7y ago
But it's the fastest way to put together a GUI.
- criddell 7y agoDoes Tcl deal with platform-specific GUI elements, or does it restrict you to a lowest common denominator set of widgets? Are there different dialog layout controllers? For example, in Swing there's BoxLayout, CardLayout, SpringLayout, etc...
- pwg 7y agoYou get both native and custom GUI elements with modern Tk. And yes, there are plural "layout controllers" (Tk calls them "geometry managers").
- fooblitzky 7y agoI believe they are referring to the Tk GUI toolkit, which is intended for use from Tcl and really nice to work with. It is full featured and has plenty of widgets and layout controllers. You can find out all about Tk here: https://tkdocs.com/ https://tkdocs.com/ It is really fast and easy to create GUIs using Tcl/Tk, e.g. here is a Tcl script to create a paint-like program in less than 50 lines: https://pastebin.com/6qibnQcJ https://pastebin.com/6qibnQcJ The main downside is that the look and feel is not native, and a bit dated. There are some efforts to update the look, but it's not as slick as Gtk etc.
- jhallenworld 7y agoWhat about tkinter for Python?
- nrclark 7y agoI dunno if you were going for irony or not with that!
- ThomasBHickey 7y agoI always thought Java should have just used Tk rather than developing AWT, which never worked very well.