def load(self): """Load the images in the datamodel while displaying a progress dialog""" if(self._datamodel.isEmpty()): return dlg = dialog.getDlg(self._root, lang[lng.dlgLoadImages]) pd = _ProgressDialog(dlg, self._datamodel) dialog.showDlg(dlg)
def showImportDlg(root, impDatamodel, psize): """Show an import dialog and return the selected items""" result = [] dlg = dialog.getDlg(root, lang[lng.txtImport]) dmid = DataModelImportDialog(dlg, impDatamodel, result, psize) dialog.showDlg(dlg) return result