Hi! So for classes I have to build a graphic application, and after doing a bit of research I found that Gtk sounded pretty easy to use so I decided to give it a shot. All good so far.
However, I found that the documentation isn’t exactly… great. To give an example, the main problem I’m having is that when I do
using Gtk
win = GtkWindow("My Window", 500, 500)
showall(win)
It just gives me a blank window, and the REPL sends out a bunch of error messages whenever I click on it (note that the code I sent is all I put in, so there isn’t even a button to detect a click; the window is just completely blank without even having an exit button in the corner). The error messages are as follow, but the Gtk Documentation isn’t giving me the slightest hint on what they mean.
(above, error messages in the repl)
So what I mean when I say the documentation is not helpful, is the following ;
I go unto Home · Gtk.jl (which is given in the github repos as the documentation for the project) and follow their instructions, creating the window. And here comes a kicker ;
However, when I click on the “Here” link, this is where it takes me.
The home page. The link to the error doc, takes me to the home page.
The first documentation link just takes me to the GTK download page – which isn’t even for Julia, it’s for c#.
The second documentation takes me to… C# documentation, which doesn’t even give the same functions, and either way gives no clue as to how I would fix any errors – it gives tutorials, sure, but tutorials for a language I’m not using ; nevermind that the tutorial for the language I am using itself gives an error and acknowledges that it’s probably going to give that error. So what gives? They tell me an error can happen but give literally no tools for how to fix it.
So here I am, asking the community if someone has any experience with Gtk.jl and knows how to prevent that issue.