Hi,

I am new to Python and do not know whether the following is a bug or a mistake 
by myself. I have built on Ubuntu the current git version of Pyside without 
problems. Using this the code below throws a SIGSEGV when closing the 
QMainWindow. The relevant bit is the definition of the colour "gray" as a class 
variable in Pseudo (which is never used).

The problem does not occur with the current binary distribution of pyside.

Thomas


#!/usr/bin/env python
import sys

from PySide.QtCore import QObject

from PySide.QtGui import QApplication
from PySide.QtGui import QMainWindow

from PySide.QtGui import QColor
from PySide.QtGui import qRgb

class Pseudo(QObject):
    gray = QColor(qRgb(230,230,230))

app = QApplication(sys.argv)
mainwindow = QMainWindow()
mainwindow.show()
mainwindow.raise_()
sys.exit(app.exec_())


-- 
Dr. habil. Thomas Sturm
Departamento de Matematicas, Estadistica y Computacion
Universidad de Cantabria, Santander, Spain
Avda. Los Castros s/n, Room 1072, +34 693 251058
http://personales.unican.es/sturmt/



Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to