On Monday, March 28, 2016 07:38:12 PM Daniel Carrera wrote: > I wish I knew more about GUI toolkits. Somehow I've never managed to find > the time. In which way does Gtk have a more sophisticated internal design?
Specifically, Gtk.jl has a more sophisticated internal design than Tk.jl. (Meaning, I was referring to the julia code.) Among other things, it makes use of introspection, see https://wiki.gnome.org/Projects/GObjectIntrospection, to auto-generate a lot of code and therefore be quite comprehensive but also fairly easy to keep up-to-date. Not sure about your error, but it seems like a network problem. Cairo is used by both Gtk and Tk, so you'd have to figure that one out anyway. --Tim > > My understanding is that Gtk doesn't work so well on Mac and Windows. The > screenshots on the Gtk website certainly make it look out of place on Mac. > Anyway, I just tried to install Gtk.jl on my Macbook but I keep getting a > weird timeout error with Cairo: > > > julia> Pkg.add("Cairo") > INFO: Cloning cache of Cairo from git://github.com/JuliaLang/Cairo.jl.git > fatal: unable to connect to github.com: github.com[0: 192.30.252.130]: > errno=Operation timed out > > ERROR: failed process: Process(`git clone -q --mirror git:// > github.com/JuliaLang/Cairo.jl.git /Users/daniel/.julia/v0.4/.cache/Cairo`, > ProcessExited(128)) [128] > > > I will try again when I can find a different way to get online. > > > Cheers, > Daniel. > > On 28 March 2016 at 06:25, Tim Holy <[email protected]> wrote: > > Gtk.jl has a more sophisticated internal design and is sometimes 5x or so > > faster for certain time-consuming rendering operations. For new code, I > > would > > certainly recommend it over Tk.jl, and I am slowly migrating my older > > visualization packages to it. > > > > Best, > > --Tim > > > > On Sunday, March 27, 2016 05:09:51 PM Daniel Carrera wrote: > > > Hello, > > > > > > When it comes to GUI toolkits in Julia, Gtk seems to be the main choice, > > > followed by Tk. At least in terms of development effort: > > > > > > Gtk.jl -- 444 commits, 23 contributors > > > Tk.jl -- 235 commits, 28 contributors > > > PySide.jl -- 35 commits, 2 contributors > > > > > > > > > Although I like Gtk, I'm curious. Is there a reason Gtk gets more > > > attention? Maybe Tk is just easier to support, so it doesn't need as > > > many > > > commits. But Tk also has less documentation. So I do get the impression > > > > Gtk > > > > > gets more attention. Why would Gtk or Tk be preferred in the context of > > > Julia? > > > > > > My understanding is that Gtk is great on Linux but doesn't work so well > > > > on > > > > > Windows and Mac. Tk has historically been considered ugly ("looks like > > > Motif") but my impression is that this was fixed long ago. Gtk has more > > > widgets than Tk and I think also more inputs. Qt is supposed to be great > > > > on > > > > > other platforms. Are C++ toolkits more difficult to support? Oh, there > > > is > > > no package for wxWidgets, and that's also a C++ toolkit. Maybe that's a > > > factor? Or maybe people just like the look of Gtk. > > > > > > > > > Cheers, > > > Daniel.
