It's nice to see that Tk's usual inflexibility as a toolkit actually serves it well here on OS X, and it just uses the native dialog boxes. Gtk has better themes, although it's stock look does leave a bit to be desired on OSX and the homebrew installation seems to have failed at the theme installation/configuration step, resulting in the non-fatal warnings that you observed (please file a bug against this on Gtk.jl – I use a MacPorts-installed gtk, so I don't see this same issue).
I'm hoping someday there will be a Julia package that provides simple access to each platforms basic standard (native) dialog boxes for open/save/etc. On Tue Feb 24 2015 at 7:55:56 PM j verzani <[email protected]> wrote: > You can try `GetOpenFile`, `GetSaveFile`, or `ChooseDirectory` in the > Tk.jl package. They all return a file name or "" if canceled. If you have > other calls you want, these are just simple wrappers. For example, ` > GetOpenFile() = tcl("tk_getOpenFile")`. > > > On Tuesday, February 24, 2015 at 6:56:21 PM UTC-5, Eric S wrote: >> >> I did try the Tk package instead. The message dialog look a lot better, >> but there is nothing in the documentation which suggests how to get at Tk's >> askopenfile or other dialogs. Any help would be appreciated. >> >> Eric >> >> On Tuesday, February 24, 2015 at 5:22:19 PM UTC-6, Eric S wrote: >>> >>> I'm enjoying Julia, but one thing I'm missing is standard file open and >>> file save dialogs. I've found the Gtk package and tried that. It does >>> indeed generate a file dialog, but it is really ugly and nonstandard (on OS >>> X) and also generates the following error like messages in the terminal >>> (below). Perhaps there is something wrong with my installation. >>> >>> Is there something like how R works where you can just type "> >>> file.choose()" and a nice file picker dialog comes up. >>> >>> -Eric >>> >>> Gtk-Message: GtkDialog mapped without a transient parent. This is >>> discouraged. >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_unref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_unref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_unref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_unref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_unref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_unref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_unref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): Gtk-WARNING **: Error loading theme icon >>> 'image-missing' for stock: Icon 'image-missing' not present in theme >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_ref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>> >>> (<unknown>:2678): GLib-GObject-CRITICAL **: g_object_unref: assertion >>> 'G_IS_OBJECT (object)' failed >>> >>
