def get_newest_image_name(): image_dir = dir_iter.Directory_iter([u'e:\\Images']) image_dir.add(0) files = get_files(image_dir) files_sorted = sort_by_date(files) if len(files_sorted) > 0: return files_sorted[-1][1] else: return u''
def get_image(): global user_name global image_dir, old_files, old_focus imageScreen = appuifw.Text() imageScreen.add(u'Hi ' + user_name + '.\n\n') imageScreen.add(u'Great job collecting that information.\n\n') imageScreen.add( u'Now please take a representative image of the demo that shows its uniqueness or value.' ) imageScreen.add(u'\n\nPress and hold the camera button to start capture.') image_dir = dir_iter.Directory_iter([ u'e:\\Images', ]) image_dir.add(0) old_files = get_files() old_focus = appuifw.app.focus appuifw.app.focus = image_focus appuifw.app.body = imageScreen
def __init__(self): self.script_lock = e32.Ao_lock() self.dir_stack = [] self.current_dir = dir_iter.Directory_iter(e32.drive_list())