Logo Search packages:      
Sourcecode: python-gtkglext1 version File versions  Download package

def gtkgl::apputils::GLArea::__button_press_event (   self,
  widget,
  event 
) [private]
'button_press_event' signal handler.
This function invokes glscene.button_press().

Definition at line 298 of file apputils.py.

                                                 :
        """'button_press_event' signal handler.
        This function invokes glscene.button_press().
        """
        glcontext = widget.get_gl_context()
        gldrawable = widget.get_gl_drawable()
        if not gldrawable.gl_begin(glcontext): return
        # Call glscene.button_press()
        self.glscene.button_press(widget.allocation.width,
                                  widget.allocation.height,
                                  event)
        gldrawable.gl_end()
        return True


Generated by  Doxygen 1.6.0   Back to index