Fix bug#623 - "QGLWidget.bindTexture(QPixmap, GLenum, GLenum) is missing"

This commit is contained in:
Hugo Parente Lima 2011-01-18 17:22:03 -02:00
commit a3cf9b0a3c
6 changed files with 24 additions and 2 deletions

View file

@ -0,0 +1,18 @@
import unittest
from PySide.QtGui import *
from PySide.QtOpenGL import *
class TestQGLWidget (unittest.TestCase):
def testIt(self):
"""Just test if the bindTexture(*, GLenum, GLint) methods overloads exists"""
app = QApplication([])
img = QImage()
w = QGLWidget()
a = w.bindTexture(img, 0, 0) # ok if it throws nothing.. :-)
if __name__ == "__main__":
unittest.main()