def dumpCard(card): ''' Connects to a card, dumps the data, disconnects, and produces a beep ''' if not card_interface.connectToCard(card): return False Tkinter.Tk().bell() try: content = structure_parser.parseCard(card.connection) except CardConnectionException: return False card.connection.disconnect() Tkinter.Tk().bell() return content
def dumpCard(card): """ Connects to a card, dumps the data, disconnects, and produces a beep """ if not card_interface.connectToCard(card): return False Tkinter.Tk().bell() try: content = structure_parser.parseCard(card.connection) except CardConnectionException: return False card.connection.disconnect() Tkinter.Tk().bell() return content
def dumpCard(card): """Initie une connection à la carte, dumpe, se déconnecte et fait un beep.""" if not card_interface.connectToCard(card): return False Tkinter.Tk().bell() try: content = structure_parser.parseCard(card.connection) except CardConnectionException: return False card.connection.disconnect() Tkinter.Tk().bell() return content