Re: [PyKDE] Threading QApplications. Possible?

2004-09-21 Thread Trost Johnson
Gordon Tyler wrote: A couple of things to note here: 1. The Python threading module is higher-level and easier to use than the lower-level thread module. 2. I don't think Python and Qt threading mix well, so you should use QThread and related classes rather than Python threading. Python

Re: [PyKDE] Threading QApplications. Possible?

2004-09-21 Thread David Boddie
On Mon, 20 Sep 2004 20:52:01, Trost Johnson wrote: Suppose the minimal program: def foo(): app=QApplication(sys.argv) button=QPushButton(Hello World, None) app.setMainWidget(button) button.show() app.exec_loop() And I say thread.start_new_thread (foo,

[PyKDE] Confused on connects.

2004-09-21 Thread Hihn, Jason
I have a simple python script that is below. How can I connect the Canceled function to the buttonCanceled button that is created in the UI file? Thanks in advance! #!/usr/bin/pythonfrom qt import *from qtui import *import sys,stringdef 'Canceled' (): print

Re: [PyKDE] Confused on connects.

2004-09-21 Thread Gordon Tyler
Hihn, Jason wrote: def 'Canceled' (): print 'Canceled' The above should be: def cancelled(): print 'Cancelled' a=QApplication(sys.argv) w=QWidgetFactory.create('network.ui') a.connect(a, SIGNAL(lastWindowClosed()), a, SLOT(quit())) Cancel=w.child('buttonCancel') # HOW DO I CONNECT THIS

Re: [PyKDE] PyKDE-3.11.3 build failure against sip-3.11

2004-09-21 Thread Jim Bublitz
On Tuesday 21 September 2004 11:13, Rex Dieter wrote: Phil Thompson wrote: SIP v4.1 and v3.11 have been released and can be downloaded from the usual place. FYI, in my attempt to rebuild PyQt/PyKDE against sip-3.11, PyQt-3.12 rebuilt fine, PyKDE-3.11.3 build fails. Failed build log

[PyKDE] How to use kdialog

2004-09-21 Thread Thorsten Kampe
I want to integrate some simple message boxes in a Python script. Of course I could use EasyGUI (www.ferg.org) but the native KDE look is much nicer. So I installed PyKDE but I couldn't figure out how to code this simple task. Could anyone tell me the equivalent Python code to 'kdialog --msgbox

Re: [PyKDE] How to use kdialog

2004-09-21 Thread Jim Bublitz
On Tuesday 21 September 2004 12:10, Thorsten Kampe wrote: I want to integrate some simple message boxes in a Python script. Of course I could use EasyGUI (www.ferg.org) but the native KDE look is much nicer. So I installed PyKDE but I couldn't figure out how to code this simple task. Could

Re: [review] [PyKDE] mouse-over/motion signal?

2004-09-21 Thread Jim Bublitz
On Tuesday 21 September 2004 17:23, Alfred Young wrote: I'm trying to create a selectable list of custom widgets that can be 'clicked-and-dragged' to select all at once-- For those familiar with perl, this would be equivalent to a motion bind on the mouse... However, I haven't been able to