예제 #1
0
 def __init__(self, client, wid, x, y, w, h, metadata, override_redirect):
     ClientWindow.__init__(self, client, wid, x, y, w, h, metadata, override_redirect)
     display_mode = gtk.gdkgl.MODE_RGB | gtk.gdkgl.MODE_SINGLE
     self.glconfig = gtk.gdkgl.Config(mode=display_mode)
     self.glarea = gtk.gtkgl.DrawingArea(self.glconfig)
     self.glarea.set_size_request(w, h)
     self.glarea.show()
     self.add(self.glarea)
     self._on_close = []
     self.textures = None  # OpenGL texture IDs
     self.current_mode = GLClientWindow.MODE_UNINITIALIZED
예제 #2
0
 def __init__(self, client, wid, x, y, w, h, metadata, override_redirect):
     ClientWindow.__init__(self, client, wid, x, y, w, h, metadata,
                           override_redirect)
     display_mode = (gtk.gdkgl.MODE_RGB | gtk.gdkgl.MODE_SINGLE)
     self.glconfig = gtk.gdkgl.Config(mode=display_mode)
     self.glarea = gtk.gtkgl.DrawingArea(self.glconfig)
     self.glarea.set_size_request(w, h)
     self.glarea.show()
     self.add(self.glarea)
     self._on_close = []
     self.textures = None  # OpenGL texture IDs
     self.current_mode = GLClientWindow.MODE_UNINITIALIZED
예제 #3
0
 def __init__(self, client, wid, x, y, w, h, metadata, override_redirect, client_properties, auto_refresh_delay):
     ClientWindow.__init__(
         self, client, wid, x, y, w, h, metadata, override_redirect, client_properties, auto_refresh_delay
     )
     display_mode = gtk.gdkgl.MODE_RGB | gtk.gdkgl.MODE_SINGLE
     self.glconfig = gtk.gdkgl.Config(mode=display_mode)
     self.glarea = gtk.gtkgl.DrawingArea(self.glconfig)
     self.glarea.set_size_request(w, h)
     self.glarea.show()
     self.add(self.glarea)
     self._video_decoder = None
     self._video_decoder_codec = None
     self.textures = None  # OpenGL texture IDs
     self.current_mode = GLClientWindow.MODE_UNINITIALIZED
예제 #4
0
 def __init__(self, client, wid, x, y, w, h, metadata, override_redirect,
              client_properties, auto_refresh_delay):
     ClientWindow.__init__(self, client, wid, x, y, w, h, metadata,
                           override_redirect, client_properties,
                           auto_refresh_delay)
     display_mode = (gtk.gdkgl.MODE_RGB | gtk.gdkgl.MODE_SINGLE)
     self.glconfig = gtk.gdkgl.Config(mode=display_mode)
     self.glarea = gtk.gtkgl.DrawingArea(self.glconfig)
     self.glarea.set_size_request(w, h)
     self.glarea.show()
     self.add(self.glarea)
     self._video_decoder = None
     self._video_decoder_codec = None
     self.textures = None  # OpenGL texture IDs
     self.current_mode = GLClientWindow.MODE_UNINITIALIZED
예제 #5
0
 def __init__(self, client, group_leader, wid, x, y, w, h, metadata, override_redirect, client_properties, auto_refresh_delay):
     debug("GLClientWindow(..)")
     ClientWindow.__init__(self, client, group_leader, wid, x, y, w, h, metadata, override_redirect, client_properties, auto_refresh_delay)
     self.set_reallocate_redraws(True)
     self.add(self._backing.glarea)