def __init__(self, app, parent, records):
     SimpleWindow.__init__(self, app, parent, 'ContactEditor')
     self.fields = CONFIELDS
     self.mainView = ContactView(self.app, self, records)
     self.setCentralWidget(self.mainView)
     self.setCaption('ContactEditor')
     self.resize(300, 500)
     self.show()
 def __init__(self, app, parent, clientid):
     SimpleWindow.__init__(self, app, parent, 'ContactEditor')
     self.app = app
     self.manager = ClientManager(self.app)
     self.clientid = clientid
     self.fields =  ['tag', 'value']
     self.dialogs = {}
     self.mainView = TagRowView(self.app, self, clientid)
     self.setCentralWidget(self.mainView)
     self.setCaption('ClientTagEditor')
     self.resize(300, 500)
     self.show()