Re: [cgkit-user] RuntimeError: Could not open Wintab device context
Brought to you by:
mbaas
|
From: Matthias B. <mat...@gm...> - 2010-05-13 23:21:25
|
Christian O'Reilly wrote: > 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 If I run your code snippet here, I don't get any error. Have you double checked that the tablet driver is actually installed? Does the tablet (and all of its functionality, not just moving the mouse cursor) work in other applications? Cheers, - Matthias - |