Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5721c91

Browse files
author
ma3918
committed
Update for later pyopengl to find Display
1 parent d1052c3 commit 5721c91

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎pyopengltk.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ def tkSwapBuffers( self ):
192192
from ctypes import c_int, c_char_p, c_void_p, cdll, POINTER, util, \
193193
pointer, CFUNCTYPE, c_bool
194194
from OpenGL import GLX
195-
from OpenGL.raw._GLX import Display
195+
try:
196+
from OpenGL.raw._GLX import Display
197+
except:
198+
from OpenGL.raw.GLX._types import Display
196199

197200
_x11lib = cdll.LoadLibrary(util.find_library( "X11" ) )
198201
XOpenDisplay = _x11lib.XOpenDisplay

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /