def env_commands(self, menuitem, name): environ = self.editor.traitparent.Environment() trait = self.editor.trait env = 'environment' if name == 'display': if not self.dialogs[env]: self.dialogs[env] = dialogs.RecordEntry(trait, environ, name=env) record = self.dialogs[env] record.set_cancel(self.destroy_dialog) elif name == 'edit': EnvironmentEditorWin(self.conn, self.editor.suite)
def environ(self, button=None, data=None): wname = '.'.join([self.suite, 'environment']) EnvironmentEditorWin(self.conn, self.suite, name=wname)