From 0fd0a98369b72d63e923b527c4dbcccefc2b0c83 Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Thu, 18 Aug 2011 21:50:32 -0400 Subject: Added an interface to the basic GEM file selection dialog. --- gem/aes.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gem') diff --git a/gem/aes.py b/gem/aes.py index 2a47e02..1bbafc5 100644 --- a/gem/aes.py +++ b/gem/aes.py @@ -53,6 +53,14 @@ def window_update(action): END_MCTRL, or BEG_MCTRL.""" _gem.wind_update(action) +def basic_file_dialog(path): + """Opens a basic file selection dialog starting at the + specified path.""" + window_update(BEG_MCTRL) + ret = _gem.fsel_input(path) + window_update(END_MCTRL) + return ret + class Window: """A class wrapping GEM windows and their functionality""" -- cgit v1.2.3