summaryrefslogtreecommitdiff
path: root/gem/aes.py
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2011-08-18 21:50:32 -0400
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2011-08-18 21:50:32 -0400
commit0fd0a98369b72d63e923b527c4dbcccefc2b0c83 (patch)
treea92c01cfc0eff8671fd542d9c9b90bbbe4a65b21 /gem/aes.py
parent024a2c85d087fa2b90e20923eeb351a637eca97e (diff)
downloadgempy-0fd0a98369b72d63e923b527c4dbcccefc2b0c83.tar.gz
gempy-0fd0a98369b72d63e923b527c4dbcccefc2b0c83.zip
Added an interface to the basic GEM file selection dialog.
Diffstat (limited to 'gem/aes.py')
-rw-r--r--gem/aes.py8
1 files changed, 8 insertions, 0 deletions
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"""