def _toggle(self, rend, path, col):
iter = self.__store.get_iter(path)
imp, nloc = self.__store.get(iter, self.col_import, self.col_nloc)
if not imp and self._check_for_dupe(nloc):
d = gtk.MessageDialog(parent=self, buttons=gtk.BUTTONS_OK)
d.set_property("text",
_("Location {number} is already being imported. "
"Choose another value for 'New Location' "
"before selection 'Import'").format(number=nloc))
d.run()
d.destroy()
else:
self.__store[path][col] = not imp
评论列表
文章目录