Skip to content

Instantly share code, notes, and snippets.

@JeffBezanson
Created October 16, 2012 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JeffBezanson/3901673 to your computer and use it in GitHub Desktop.
Save JeffBezanson/3901673 to your computer and use it in GitHub Desktop.
index b2b032c..ce89fb3 100644
--- a/extras/tk.jl
+++ b/extras/tk.jl
@@ -92,11 +92,10 @@ type TkWidget
global Window
function Window(title, w, h)
wpath = ".jl_win$ID"; ID += 1
- tcl_eval("frame $wpath -width $w -height $h")
- tcl_eval("wm manage $wpath")
+ tcl_eval("toplevel $wpath -width $w -height $h")
tcl_eval("wm title $wpath \"$title\"")
tcl_doevent()
- new(wpath, "frame", nothing)
+ new(wpath, "toplevel", nothing)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment