[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] QColorDialog and GLUT on Mac
From: Mistobaan <mistobaan () gmail ! com>
Date: 2008-10-28 15:55:54
Message-ID: 7304802E-2E53-4AD5-B6F0-4CA8FE614DE4 () gmail ! com
[Download RAW message or body]
Hi guys
I found a strange case on using both PyQt and GLUT, the QColorDialog
on Mac. The dialog will return always the same color (the
initialization one).
removing the glutInitialize() function solves the problem.
I resolved the problem on my app getting rid of glut.
Anyone else had a similar case?
here it is code that reproduces the problem on my mac
##-----------------------------------------------------
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from OpenGL.GLUT import glutInit
app =QApplication([])
glutInit([])
color = QColorDialog.getColor()
color = color.toRgb()
print color.redF(), color.greenF(), color.blueF()
##-----------------------------------------------------
Thanks,
Fabrizio
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic