--- /dev/null
+"""
+Import dialogs
+"""
+
+import gtk
+import hildon
+import gobject
+
+
+class ImportDialog:
+ """Import dialog."""
+
+ def __init__(self):
+ chooser = gobject.new(hildon.FileChooserDialog, \
+ action=gtk.FILE_CHOOSER_ACTION_OPEN)
+ chooser.set_property('show-files', True)
+ chooser.run()
+ self.path = chooser.get_filename()
+ chooser.destroy()
+
+ def run(self):
+ return self.path
+