Tk.jl icon indicating copy to clipboard operation
Tk.jl copied to clipboard

Packing Canvas Throws MethodError

Open rteehas opened this issue 3 years ago • 2 comments

I attempted to run the sketch_window() function in sketch.jl but when it evaluates the line that packs the canvas it throws the following: ERROR: MethodError: pack(::Canvas) is ambiguous. Candidates: pack(c::Canvas, args...) in Tk at C:\Users\rteehan\.julia\packages\Tk\c8ZUf\src\tkwidget.jl:411 pack(widget::Union{AbstractString, Canvas, Tk.TkWidget, Tk_Widget}; kwargs...) in Tk at C:\Users\rteehan\.julia\packages\Tk\c8ZUf\src\containers.jl:117 Possible fix, define pack(::Canvas)

It seems like the example is failing because of an ambiguous overloaded function definition.

rteehas avatar Aug 18 '20 20:08 rteehas