So I'm new to Julia and I'm testing out some of it's GUI capabilities with Cairo and Tk. I'm following one of the tutorials on the Julia website and I've tried out the code they have for it.
using Base.Graphics
using Cairo
using Tk
win = Toplevel("Test", 400, 200)
c = Canvas(win)
pack(c, expand=true, fill="both")
The Stacktrace it generates is as follows:
ERROR: LoadError: UndefVarError: Graphics not defined
Stacktrace:
[1] include(::Function, ::Module, ::String) at ./Base.jl:380
[2] include(::Module, ::String) at ./Base.jl:368
[3] exec_options(::Base.JLOptions) at ./client.jl:296
[4] _start() at ./client.jl:506
in expression starting at /path/to/my/julia/program.jl:1
I've installed the Graphics package, but that didn't seem to help anything. I tried to install the Base package, but it told me "* Base (not found in project, manifest or registry)."
Maybe it's me, but this trace isn't really helping describe the issue. It says Graphics is not defined, but then acts like Base is the issue. What's going on here? Any help is appreciated.