Beispiel #1
0
def dump_wintab():
    """Dump WinTab info."""
    try:
        from pyglet.input import wintab
    except:
        print('WinTab not available.')
        return

    interface_name = wintab.get_interface_name()
    impl_version = wintab.get_implementation_version()
    spec_version = wintab.get_spec_version()

    print('WinTab: %s %d.%d (Spec %d.%d)' % (interface_name,
                                             impl_version >> 8, impl_version & 0xff,
                                             spec_version >> 8, spec_version & 0xff))
Beispiel #2
0
def dump_wintab():
    '''Dump WinTab info.'''
    try:
        from pyglet.input import wintab
    except:
        print 'WinTab not available.'
        return

    interface_name = wintab.get_interface_name()
    impl_version = wintab.get_implementation_version()
    spec_version = wintab.get_spec_version()

    print 'WinTab: %s %d.%d (Spec %d.%d)' % (interface_name,
        impl_version >> 8, impl_version & 0xff,
        spec_version >> 8, spec_version & 0xff)
Beispiel #3
0
def dump_wintab():
    """Dump WinTab info."""
    try:
        from pyglet.input import wintab
    except:
        print("WinTab not available.")
        return

    interface_name = wintab.get_interface_name()
    impl_version = wintab.get_implementation_version()
    spec_version = wintab.get_spec_version()

    print(
        "WinTab: %s %d.%d (Spec %d.%d)"
        % (interface_name, impl_version >> 8, impl_version & 0xFF, spec_version >> 8, spec_version & 0xFF)
    )