projects
/
meabook
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
eebd952087aa1d713b4193a95e760d210862b59e
[meabook]
/
ui
/
hildon_ui
/
imports.py
1
"""
2
Import dialogs
3
"""
4
5
import gtk
6
import hildon
7
import gobject
8
9
10
class ImportDialog:
11
"""Import dialog."""
12
13
def __init__(self):
14
chooser = gobject.new(hildon.FileChooserDialog, \
15
action=gtk.FILE_CHOOSER_ACTION_OPEN)
16
chooser.set_property('show-files', True)
17
chooser.run()
18
self.path = chooser.get_filename()
19
chooser.destroy()
20
21
def run(self):
22
return self.path
23