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 99c7c55

Browse files
Found winfo_visualid...
1 parent 7d7fc9e commit 99c7c55

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎pyopengltk.py‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def printContext(self):
8282
bool( msk & GL.GL_CONTEXT_COMPATIBILITY_PROFILE_BIT) )
8383
except:
8484
print("Old context errors arose")
85-
raise
85+
# raise
8686

8787
def tkCreateContext( self ):
8888
# Platform dependent part
@@ -190,7 +190,7 @@ def tkSwapBuffers( self ):
190190
pointer, CFUNCTYPE, c_bool
191191
from OpenGL import GLX
192192
from OpenGL.raw._GLX import Display
193-
import tk_read_XWindowAttributes
193+
# import tk_read_XWindowAttributes
194194

195195
_x11lib = cdll.LoadLibrary(util.find_library( "X11" ) )
196196
XOpenDisplay = _x11lib.XOpenDisplay
@@ -251,9 +251,10 @@ def tkCreateContext( self ):
251251
(GL.GLint * len(fbatt))(* fbatt),
252252
ncfg )
253253
print( "Number of configs",ncfg.value )
254-
xwa = tk_read_XWindowAttributes.getXWA(self._wid)
255-
print("xwa....id" ,xwa.visual.contents.visualid)
256-
ideal = xwa.visual.contents.visualid
254+
# xwa = tk_read_XWindowAttributes.getXWA(self._wid)
255+
# print("xwa....id" ,xwa.visual.contents.visualid)
256+
# ideal = xwa.visual.contents.visualid
257+
ideal = self.winfo_visualid()
257258
best = -1
258259
for i in range(ncfg.value):
259260
vis = GLX.glXGetVisualFromFBConfig(self.__window, cfgs[i])

0 commit comments

Comments
(0)

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