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

Rename `Text` to `TkText`

Open pfitzseb opened this issue 8 years ago • 4 comments

and fix test errors on Windows and 0.6.

Fixes #117.

pfitzseb avatar May 02 '17 14:05 pfitzseb

Just noticed that this includes the fix from #136 -- not sure how we should handle that.

pfitzseb avatar May 02 '17 15:05 pfitzseb

OSX nightly test error is unrelated.

pfitzseb avatar May 02 '17 15:05 pfitzseb

What was the motivation for changing Text to TkText? Much of the incidental changes in this PR is stale, but I'm trying to understand if the core change is still required.

aviks avatar Feb 05 '20 14:02 aviks

The fact that both Base and Tk export Text leads to fun stuff like

julia> Text("asd")
asd

julia> using Tk

julia> Text("asd")
ERROR: MethodError: no method matching Tk.TkWidget(::String, ::String)

julia> Base.Text("asd")
ERROR: MethodError: no method matching Tk.TkWidget(::String, ::String)

julia> Base.Docs.Text("asd")
ERROR: MethodError: no method matching Tk.TkWidget(::String, ::String)

pfitzseb avatar Feb 05 '20 14:02 pfitzseb