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 & 255, spec_version >> 8, spec_version & 255))
