[PyKDE] Problem with messagebox

Maurizio Colucci maurizio.colucci at gmail.com
Tue Aug 2 14:21:23 BST 2005


Hi there,

I am using PyKDE for a file-manager (http://onefinger.sf.net).

I don't understand why this fails:

                    res = QMessageBox.question(mainVBox
                                               , _('Confirmation')
                                               , _('Are you sure you
want to delete ') + num + _(' files?')
                                               , QMessageBox.Yes,
QMessageBox.No)
                    if res == QMessageBox.Yes:
                        print "yes"
                    elif res == QMessageBox.No:
                        print "no"
                    else:
                        print "error"
                        print str(res) + str(QMessageBox.Yes) +
str(QMessageBox.No)


The output is:

error
034

I am using pykde as in Suse 9.3. This means I have a package called
"kdebindings3-python", version 3.4.0-6.1. I also have kdebase3 version
3.4.0-28.2.

Thanks for any info.

Maurizio




More information about the PyQt mailing list