Example #1
0
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
Example #2
0
File: loop.py Project: Zengwn/pssi
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
Example #3
0
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