def OnActivateCard(self, card): """Called when a card is activated by double-clicking on the card or reader tree control or toolbar. In this sample, we just connect to the card on the first activation.""" SimpleSCardAppEventObserver.OnActivateCard(self, card) self.feedbacktext.SetLabel('Activated card: ' + repr(card)) self.transmitbutton.Enable()
def OnActivateCard(self, card): """Called when a card is activated by double-clicking on the card or reader tree control or toolbar. In this sample, we just connect to the card on the first activation.""" SimpleSCardAppEventObserver.OnActivateCard(self, card) datumlesen(self) if DEBUG == 1: print "test debug", self.readdatum ID_TEXTCTRL_RESPONSE = self.readdatum self.feedbacktext1.SetLabel('Vorname: ' + ` self.VorName `) self.feedbacktext2.SetLabel('Namame : ' + ` self.NachName `) self.feedbacktext.SetLabel('Letztes Lesedatum: ' + ` self.readdatum `) self.transmitbutton.Enable()
def OnDeactivateCard(self, card): """Called when a card is deactivated in the reader tree control or toolbar.""" SimpleSCardAppEventObserver.OnActivateCard(self, card) self.feedbacktext.SetLabel('Deactivated card: ' + repr(card)) self.transmitbutton.Disable()
def OnDeactivateCard(self, card): """Called when a card is deactivated in the reader tree control or toolbar.""" SimpleSCardAppEventObserver.OnActivateCard(self, card) self.feedbacktext.SetLabel('Deactivated card: ' + ` card `)