def __import(self): """Import annotations from a file.""" win = ImportWindow(self) win.show()
def __import(self): """Import annotations from a file.""" if not hasattr(self, '_import_window'): self._import_window = ImportWindow(self) self._import_window.show()