Hi,
I'm trying to use the wintab wrapper and it always failed at the
opening of the context with the error message "RuntimeError: Could not
open Wintab device context". For example, the following code :
import pygame
from cgkit import wintab
from cgkit.wintab.constants import *
pygame.init()
screen = pygame.display.set_mode((0, 0))#, pygame.FULLSCREEN)
hwnd = pygame.display.get_wm_info()['window']
context = wintab.Context()
context.pktdata = ( PK_X | PK_Y | PK_NORMAL_PRESSURE | PK_TIME |
PK_SERIAL_NUMBER )
context.open(hwnd, True)
does generate the specified error at execution of the line
"context.open(hwnd, True)". Looking at the code of py_wintab.cpp, it
looks like this happening because like the WTOpen(...) call return 0.
Does anyone have an idea how I could efficiently troubleshoot the
source of my problem?
Christian
|