Talk:Tk (software)/Archive 1
This is an archive of past discussions about Tk (software). Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 |
Native Widgets
I disagree with the comment about native widgets, on Windows it uses its own scroll-bar and button implementations, while on Linux I tries to emulate motif. Not really native by todays standards, as while some parts of it do make calls down to the systems native GUI toolkit a large proportion of it is also emulated by using drawing primitives available on each system.
- Are you sure you're up to date on this? Tk 8.0 made significant changes, including the use of native buttons, menus, menubars, and scrollbars. Bill 20:50, 4 March 2006 (UTC)
- Regarding the comment about native and Linux: There simply is no native look and feel for Linux. QT looks wrong under gnome, gtk looks wrong under KDE, both look wrong under CDE, and Tk looks wrong under KDE and gnome because of the dated Motif style.
- For Windows: Agreed, Tk only uses some native widgets (scrollbar is one of them, as are the standard dialogs), implements more or less good look alikes for others. With the tile package (adopted for inclusion into Tk 8.5) http://tktable.sourceforge.net/tile/ the native theming engine is used to draw the widgets, there is even a tileQt engine to use Qt for drawing the widgets.
- (the above post was by 134.106.31.37). Makaristos 19:34, 8 March 2006 (UTC)
Just wondering: why is the page on Tcl give a better indication of Tk, then the page exclusively written for it? Perhaps there should be a reference at the top?
Revert to previous version
I would like to revert to the previous version that contained a list of useful links of Tk bindings for various languages. I am unclear as to the reason they were removed as the rules in the WP:EL page allows them.
DrGears (talk) 14:17, 5 January 2008 (UTC)
features of canvas and text widgets
"The most unusual and versatile features of Tk are its canvas and text widgets, which provide capabilities found in few, if any other, widget toolkits." <- I am curious about what these are (because I don't know Tk). Shouldn't there be at least some examples about these special capabilities? --Albertzeyer (talk) 19:22, 11 September 2010 (UTC)
The Tk canvas widget aparently came from Joel Bartlett's ezd program and has been added to GTK. The origins can be found in the [1] under Credits. I have taken the addition to GTK on faith from this tcl/tk wiki discussion [2] and have not yet visited Jim Getty's text or the original source. If this information is correct, it would appear that "...found in few, if any..." is incorrect.
In TK, as I recall, canvas is used to define a widget to which other widgets can be bound; a new window widget that contains other widgets and thus allows structured graphics. In this discussion from 2006, Havoc Pennington, goes into some depth on the definition of a canvas widget for GTK+ [3] The issue seems to go back at least to 2000 when gnome_canvas was re-ported into GTK+ with the new name gtk_canvas [4]. There is an apparently unrelated, vector graphic canvas_widget of apple origin in HTML5. [5] --Pendare (talk) 10:50, 24 April 2011 (UTC)
Notes
References
Fonts
Umm, my memory is nowhere near good enough to say this with certainty, but is it true that tcl/tk prior to 8.5 could not use the native X fonts ? X has supported scalable Type 1 fonts since version *5* !!
All the claims about "Ooh, X fonts are so ugly" are pure ignorance. In actual practice, TrueType and Type 1 are identical, and X has had scalable fonts for years. Decades, maybe. 210.22.142.82 (talk) 13:28, 28 February 2016 (UTC)