def new_data(self): """ Import file """ dialog = NewData("Import data file", self.pkgmanager, self) ret = dialog.exec_() if (ret > 0): dialog.create_datafactory(self.pkgmanager) self.reinit_treeview()
def new_data(self): """ Import file """ dialog = NewData("Import data file", self.pkgmanager, self) ret = dialog.exec_() if(ret > 0): dialog.create_datafactory(self.pkgmanager) self.reinit_treeview()
def add_data(self): """ """ pman = self.model().pman # pkgmanager pkg = self.get_current_pkg() dialog = NewData("Import Data", pman, self, pkg_id=pkg.name) ret = dialog.exec_() if(ret>0): newfactory = dialog.create_datafactory(pman)