Пример #1
0
 def inject(self, acc):
     """Inject an account object into the dialoge and turn off signals
     from name and number fields whil we edit<br>
     'acc': Account object, supplied by signal
     """
     Account.inject(self, acc)
     self._accObj= acc.copyOfAccount() # Make a new objet for editing
     self.blockSomeSignals(1)
     self.wLineMode.setPixmap(self.imgEdit) #name field is in edit mode
Пример #2
0
 def inject(self, acc):
     """Get the account object from an other dialogue.<br>
     'acc': Account object supplied with signal
     """
     Account.inject(self, acc) # do the basefunction, and then some...
     self._accObj= acc.copyOfAccount()
     self.wAccNum.setText(acc.num)
     self.wAccName.setText(acc.name)
     self.wVat.setCurrentItem(int(acc.defVat))
     self.wBudget.setText(Model.Global.intToMoney(acc.budget))