[PyKDE] (no subject)
Hi, I have a problem: I want to use Qt Designer both on PC and XTerm. On XTerm, no problem. But on PC, a segmentation fault (core dumped) appears each time I try to start Qt Designer. I'm using a screen emulator to connect on Linux: Reflexion X (version 7.00). I think the problem comes from that. Could you help me please?? Thanks a lot. __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] QMessageBox and Qt3
Hi, My program crashed without any error messages and after some investigation I could isolate the problem. These few lines work fine on Mandrake 8.2 with PyQt 3.1 and Qt 2.3.1 but on Redhat 7.3 with Qt 3.0.3, PyQt 3.2.4 and Python 2.2 it just crashes. import sys from qt import * a = QApplication(sys.argv) mb = QMessageBox(Warning, text, QMessageBox.Warning, QMessageBox.Yes, QMessageBox.No , QMessageBox.Cancel) mb.show() Is this a bug in PyQt or is this code not supposed to work with Qt3? According to the Qt3 documentation it should work fine. Magnus Bjorklof _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] QMessageBox and Qt3
Magnus Bjorklof wrote: Hi, My program crashed without any error messages and after some investigation I could isolate the problem. These few lines work fine on Mandrake 8.2 with PyQt 3.1 and Qt 2.3.1 but on Redhat 7.3 with Qt 3.0.3, PyQt 3.2.4 and Python 2.2 it just crashes. import sys from qt import * a = QApplication(sys.argv) mb = QMessageBox(Warning, text, QMessageBox.Warning, QMessageBox.Yes, QMessageBox.No , QMessageBox.Cancel) mb.show() Is this a bug in PyQt or is this code not supposed to work with Qt3? According to the Qt3 documentation it should work fine. Works fine for me (Qt 3.0.4). Did you build Qt, or did it come with RedHat? Have you tried the C++ equivalent. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] QMessageBox and Qt3
That is expected: in Qt 2.x, a modal dialog would silently call exec() on show(), in Qt 3.0, this does no longer happen (which is a documented change). Doing an mb.exec_loop() instead of mb.show() should fix it. Regards, Soeren My program crashed without any error messages and after some investigation I could isolate the problem. These few lines work fine on Mandrake 8.2 with PyQt 3.1 and Qt 2.3.1 but on Redhat 7.3 with Qt 3.0.3, PyQt 3.2.4 and Python 2.2 it just crashes. import sys from qt import * a = QApplication(sys.argv) mb = QMessageBox(Warning, text, QMessageBox.Warning, QMessageBox.Yes, QMessageBox.No , QMessageBox.Cancel) mb.show() ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] (no subject)
On Thu, 6 Jun 2002 09:26:32 GMT François CORRIHONS [EMAIL PROTECTED] wrote: Hi, I have a problem: I want to use Qt Designer both on PC and XTerm. On XTerm, no problem. But on PC, a segmentation fault (core dumped) appears each time I try to start Qt Designer. I'm using a screen emulator to connect on Linux: Reflexion X (version 7.00). I think the problem comes from that. Could you help me please?? Parse error! Please rethink your problem and come back again. Hint: PC is a synonym for a common hardware architecture, XTerm is a terminal emulation within the X Window System... Thanks a lot. Please insert coin to try again... hp ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] PyKDE Bug
In KLineEditDlg in PyKDE the static method 'getText' does not work correctly - it generates a runtime error under some circumstances. I'm not sure of the exact problem, but it's in handwritten code for this method (which should return a tuple of QString and int). This applies to all PyKDE/KDE versions. The workaround is to instantiate KLineEditDlg, run it with exec_loop, retrieve the button pressed from exec_loop's return value, and retrieve the text entered using the KLineEditDlg 'text' method. The tuple 'getText' returns contains both values, and 'getText' does the exec automatically, with no need to instantiate KLineEditDlg (or would if it worked). This will be fixed in the next PyKDE release. Jim ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] QMessageBox and Qt3
That is expected: in Qt 2.x, a modal dialog would silently call exec() on show(), in Qt 3.0, this does no longer happen (which is a documented change). Doing an mb.exec_loop() instead of mb.show() should fix it. Regards, Soeren Thanks, that works fine now with both Qt2 and Qt3. It's still strange that my code worked for Phil but not for me... My program crashed without any error messages and after some investigation I could isolate the problem. These few lines work fine on Mandrake 8.2 with PyQt 3.1 and Qt 2.3.1 but on Redhat 7.3 with Qt 3.0.3, PyQt 3.2.4 and Python 2.2 it just crashes. import sys from qt import * a = QApplication(sys.argv) mb = QMessageBox(Warning, text, QMessageBox.Warning, QMessageBox.Yes, QMessageBox.No , QMessageBox.Cancel) mb.show() Magnus Bjorklof _ Chat with friends online, try MSN Messenger: http://messenger.msn.com ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde