Beispiel #1
0
 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'])
Beispiel #2
0
 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'])
Beispiel #3
0
 def __init__(self, parent, name='NewFamilyDialog'):
     BaseRecordDialog.__init__(self, parent, ['name'], name=name)
     self.setCaption('Add a new family')
Beispiel #4
0
 def __init__(self, parent, name='NewTraitVariableDialog'):
     BaseRecordDialog.__init__(self, parent, ['name', 'value'], name=name)
     self.frame.text_label.setText('Make a new trait variable.')
Beispiel #5
0
 def __init__(self, parent, name='NewTraitDialog'):
     BaseRecordDialog.__init__(self, parent, ['name'], name=name)
     self.setCaption('Add a new trait')
Beispiel #6
0
 def __init__(self, parent, name='NewTraitVariableDialog'):
     BaseRecordDialog.__init__(self, parent, ['name', 'value'], name=name)
     self.frame.text_label.setText('Make a new trait variable.')
Beispiel #7
0
 def __init__(self, parent, name='NewTraitDialog'):
     BaseRecordDialog.__init__(self, parent, ['name'], name=name)
     self.setCaption('Add a new trait')
Beispiel #8
0
 def __init__(self, parent, name='NewFamilyDialog'):
     BaseRecordDialog.__init__(self, parent, ['name'], name=name)
     self.setCaption('Add a new family')