Exemplo n.º 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'])
Exemplo n.º 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'])
Exemplo n.º 3
0
 def __init__(self, parent, name='NewFamilyDialog'):
     BaseRecordDialog.__init__(self, parent, ['name'], name=name)
     self.setCaption('Add a new family')
Exemplo n.º 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.')
Exemplo n.º 5
0
 def __init__(self, parent, name='NewTraitDialog'):
     BaseRecordDialog.__init__(self, parent, ['name'], name=name)
     self.setCaption('Add a new trait')
Exemplo n.º 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.')
Exemplo n.º 7
0
 def __init__(self, parent, name='NewTraitDialog'):
     BaseRecordDialog.__init__(self, parent, ['name'], name=name)
     self.setCaption('Add a new trait')
Exemplo n.º 8
0
 def __init__(self, parent, name='NewFamilyDialog'):
     BaseRecordDialog.__init__(self, parent, ['name'], name=name)
     self.setCaption('Add a new family')