コード例 #1
0
 def __init__(self, app, parent, fields, record, name):
     EditRecordDialog.__init__(self, parent, fields, record, name)
     self.app = app
     self.connect(self.refbuttons['address'],
                  SIGNAL('clicked()'), self.selAddress)
     #self.enableButtonOK(False)
     addressid = record.addressid
     text = AddressLink(self.app.db, addressid).firstChild.data
     self.refbuttons['address'].setText(text)
     self.addressid = addressid
コード例 #2
0
 def __init__(self, parent, record):
     fields = LOCFIELDS
     EditRecordDialog.__init__(self, parent, fields, record=record, name='EditLocation')
コード例 #3
0
 def __init__(self, app, parent, record):
     EditRecordDialog.__init__(self, parent, ['client'], record, 'ClientEditDialog')
     self.clientid = record['clientid']