Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
Just tested on Windows and looks very good and useful, thanks! I have one question, is there by chance a way to extend Tk in D in order to create a grid like widget (excel, winforms grid view look alike)? If yes any hints would be much appreciated. IMHO, two widgets are missing in Tk-Tkinter a grid as mentioned above and a web view. Thanks again for your efforts. Regards, Stef K. On Sunday, 4 May 2014 at 16:18:53 UTC, Gary Willoughby wrote: Tkd v1.0.0-beta https://github.com/nomad-software/tkd http://code.dlang.org/packages/tkd Overview Tkd is a fully cross-platform GUI toolkit based on Tcl/Tk[1]. Tkd allows you to build GUI applications easily and with the knowledge of a consistent, native look and feel on every platform. Why Tcl/Tk? Tkd development was initiated based on the performance and uptake of the Tkinter[2] toolkit distributed as a standard part of the Python[3] programming language. Tkinter allows developers easy access to GUI programming with very little learning. Being the de facto GUI toolkit of Python has introduced more developers to GUI application programming and increased the popularity of the language as a whole. Tkd is an attempt to provide D with the same resource. Supported platforms Windows Linux Mac OSX Documentation Full HTML documentation is available inside the repository. Notes Because Tkd is based upon Tcl/Tk and being cross-platform in nature there are limitations on what can be achieved. While not as comprehensive as gtkd or qtd, Tkd offers a smaller and lighter alternative for quickly creating native GUI applications. See the readme in the repository for more detailed information. [1]: http://www.tcl.tk/ [2]: https://wiki.python.org/moin/TkInter [3]: https://www.python.org/
Tkd – Cross platform GUI toolkit based on Tcl/Tk
http://www.reddit.com/r/programming/comments/251s5i/tkd_cross_platform_gui_toolkit_for_d_based_on/ https://twitter.com/D_Programming/status/464434846849179648 https://www.facebook.com/dlang.org/posts/843295265684156 https://hn.algolia.com/#!/story/forever/0/Tkd Andrei
Re: Tkd – Cross platform GUI toolkit based on Tcl/Tk
On 5/8/14, Andrei Alexandrescu via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: http://www.reddit.com/r/programming/comments/251s5i/tkd_cross_platform_gui_toolkit_for_d_based_on/ https://twitter.com/D_Programming/status/464434846849179648 https://www.facebook.com/dlang.org/posts/843295265684156 https://hn.algolia.com/#!/story/forever/0/Tkd Congrats to Gary Willoughby for the release!
Re: Tkd – Cross platform GUI toolkit based on Tcl/Tk
On Thursday, 8 May 2014 at 16:05:50 UTC, Andrei Alexandrescu wrote: http://www.reddit.com/r/programming/comments/251s5i/tkd_cross_platform_gui_toolkit_for_d_based_on/ https://twitter.com/D_Programming/status/464434846849179648 https://www.facebook.com/dlang.org/posts/843295265684156 https://hn.algolia.com/#!/story/forever/0/Tkd Andrei Hello, TKD is very nice, and it's easy to use,but how to build it to small? Such as the size is below to 1M, not must have the lib ,and Memory usage is below to 3M. Thank you. Frank.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Thursday, 8 May 2014 at 06:49:40 UTC, Stef Kariotidis wrote: I have one question, is there by chance a way to extend Tk in D in order to create a grid like widget (excel, winforms grid view look alike)? If yes any hints would be much appreciated. IMHO, two widgets are missing in Tk-Tkinter a grid as mentioned above and a web view. These widgets are not supported in Tcl/Tk by itself but could be added at any time. The Tkinter ones (and there is many) are community written using Tkinter (in Python), Tcl or as C extensions. I guess we could do the same if there is enough demand. Tkd is not meant to be an all singing all dancing GUI toolkit (such as Gtk or Qt) but rather a simple toolkit for simple UI's. If you need something built quickly with a simple UI (a prototype perhaps) use Tkd. If you're building the next Steam or Spotify use Qt/Gtk.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On 5/8/2014 1:46 PM, Gary Willoughby wrote: If you're building the next Steam or Spotify use Qt/Gtk. Or better yet, don't. Steam's UI is terrible. Clicking search suggestions often does nothing, the search result paging is goofy as hell and very impractical, the whole thing's absurdly sluggish, in general ignores any and all system settings, menu dropdowns open upon hover instead of click, and, oh yea, my trackpad's scrolling gestures don't even fucking work on it (they work fine on nearly anything else). That's all just off the top of my head. From what I've seen of Tk so far, Steam would have been *far* better if it had used it instead of going to the bother of reinventing everything really, really badly. (Well, at least Steam isn't all-green anymore like it used to be :/ )
Re: Tkd – Cross platform GUI toolkit based on Tcl/Tk
On Thursday, 8 May 2014 at 17:10:10 UTC, FrankLike wrote: Hello, TKD is very nice, and it's easy to use,but how to build it to small? Such as the size is below to 1M, not must have the lib ,and Memory usage is below to 3M. Can you please stop asking that in every thread. Tkd depends on Tcl/Tk and will always do so. There is always going to be a certain amount of overhead because of that.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On Thu, May 08, 2014 at 15:41:57 -0400, Nick Sabalausky via Digitalmars-d-announce wrote: Or better yet, don't. Steam's UI is terrible. Clicking search suggestions often does nothing, the search result paging is goofy as hell and very impractical, the whole thing's absurdly sluggish, in general ignores any and all system settings, menu dropdowns open upon hover instead of click, and, oh yea, my trackpad's scrolling gestures don't even fucking work on it (they work fine on nearly anything else). That's all just off the top of my head. From what I've seen of Tk so far, Steam would have been *far* better if it had used it instead of going to the bother of reinventing everything really, really badly. (Well, at least Steam isn't all-green anymore like it used to be :/ ) IIRC, Steam is a Java beast, so I wouldn't go off and blame Qt/Gtk for that. --Ben
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On 5/8/2014 4:35 PM, Ben Boeckel via Digitalmars-d-announce wrote: On Thu, May 08, 2014 at 15:41:57 -0400, Nick Sabalausky via Digitalmars-d-announce wrote: Or better yet, don't. Steam's UI is terrible. Clicking search suggestions often does nothing, the search result paging is goofy as hell and very impractical, the whole thing's absurdly sluggish, in general ignores any and all system settings, menu dropdowns open upon hover instead of click, and, oh yea, my trackpad's scrolling gestures don't even fucking work on it (they work fine on nearly anything else). That's all just off the top of my head. From what I've seen of Tk so far, Steam would have been *far* better if it had used it instead of going to the bother of reinventing everything really, really badly. (Well, at least Steam isn't all-green anymore like it used to be :/ ) IIRC, Steam is a Java beast, so I wouldn't go off and blame Qt/Gtk for that. --Ben I wasn't trying to blame Qt/Gtk (actually, I kinda like Qt stuff - I've heard it's not technically native UI, but hell if I can actually tell the difference. They've done a damn fine job.) I was just saying Steam likely would have been better had they used something more sensible like Tk instead of going off rolling their own GUI. Qt probably would have work out alright, too. Not to say that Tk/Qt would have solved all of Steam's problems, but I imagine it would've likely been at least an improvement *even* if Tk isn't intended for non-simplistic stuff. A lot of that non-simple stuff isn't really a good idea anyway.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
Am 08.05.2014 21:41, schrieb Nick Sabalausky: (...)my trackpad's scrolling gestures don't even fucking work on it (they work fine on nearly anything else). To be fair, some time ago I've had the joy to try and properly support scrolling gestures properly for my UI framework and I wound up naming the window class of my windows OperaWindowClass, because that triggers a special case path in the touchpad driver, which actually sends useful window messages. I didn't find another way to get useful data. The whole (Synaptics) driver is obviously nothing but a crapload of special case junk to make the most popular applications and controls work, because the people involved obviously don't manage to develop a standard API for pixel perfect scrolling.
Re: Tkd - Cross platform GUI toolkit based on Tcl/Tk
On 5/8/2014 4:51 PM, Sönke Ludwig wrote: Am 08.05.2014 21:41, schrieb Nick Sabalausky: (...)my trackpad's scrolling gestures don't even fucking work on it (they work fine on nearly anything else). To be fair, some time ago I've had the joy to try and properly support scrolling gestures properly for my UI framework and I wound up naming the window class of my windows OperaWindowClass, because that triggers a special case path in the touchpad driver, which actually sends useful window messages. I didn't find another way to get useful data. The whole (Synaptics) driver is obviously nothing but a crapload of special case junk to make the most popular applications and controls work, because the people involved obviously don't manage to develop a standard API for pixel perfect scrolling. Hmm, that may be so. I've yet to find one piece of OEM software that isn't (at best) barely-functional garbage. And I just noticed it apparently doesn't work in Tk even with its native controls, bizarrely enough. I honestly never would have even imagined that this stuff would actually manage to fail on native controls. It just seemed obvious that if there was anything *at all* it would work with, it would be native controls. What a mess. OTOH, as little respect as I have for OEM software, I wouldn't be surprised if their hand is somewhat forced. If they'd done it by providing an API, nobody would bother to use the API. The only right way would be to integrate with existing OS support, but if the OS doesn't already provide that (I wouldn't know whether it does), then nothing's going to get companies like MS, Apple or likely even Canonical to actually give enough of a rat's ass to pull attention away from their own internal politics and agendas. Can't let nicely working user-facing features get in the way of corporate agendas and red tape, can they? ;)