def __init__(self, parent, name='PaellaConnectionDialog'): fields = ['dbhost', 'dbname', 'dbusername', 'dbpassword'] BaseRecordDialog.__init__(self, parent, fields, name=name) self.frame.text_label.setText('Connect to a database.') self.setButtonOKText('connect', 'connect') self.app = get_application_pointer() # setup the password entry entry = self.frame.entries['dbpassword'] entry.setEchoMode(entry.Password) if os.environ.has_key('PAELLA_DBPASSWD'): entry.setText(os.environ['PAELLA_DBPASSWD'])
def __init__(self, parent, name='NewFamilyDialog'): BaseRecordDialog.__init__(self, parent, ['name'], name=name) self.setCaption('Add a new family')
def __init__(self, parent, name='NewTraitVariableDialog'): BaseRecordDialog.__init__(self, parent, ['name', 'value'], name=name) self.frame.text_label.setText('Make a new trait variable.')
def __init__(self, parent, name='NewTraitDialog'): BaseRecordDialog.__init__(self, parent, ['name'], name=name) self.setCaption('Add a new trait')