[PyKDE] Non-modal dialogs cause Python crash

Jesper Eskilson jojo at virtutech.se
Mon Sep 25 21:07:47 BST 2000


I'm experiencing some problems with non-modal dialogs. Python crashes in
"onButtonOk" method in the MyDialog2-class (see attachments for the
complete code).

--[cut]--
class MyDialog2(MyDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        MyDialog.__init__(self,parent,name,modal,fl)
        
        self.connect(self.buttonOk,SIGNAL("clicked()"),self.onButtonOk)

    def onButtonOk(self):
        print "onButtonOk():"
        print self
--[cut]--

If the "modal" parameter is set to "1" the program runs fine. 

Am I doing something wrong, or is there a bug out there lurking somewhere?

Thanks in advance,

/Jesper


-------------- next part --------------

-- 
/Jesper


More information about the PyQt mailing list