[PyKDE] QFileDialog blocks QThread?

2005-02-23 Thread Sok Ann Yap
Running the following PyQt script, whenever I click the Open button, the QThread will be stopped until I close the file dialog. The equivalent code in C++ has no such problem. # thread.py import sys, time, random from qt import * class MyThread(QThread): def __init__(self, receiver): QThrea

Re: [PyKDE] KSystemTray and window closing

2003-08-29 Thread Sok Ann Yap
--- Jim Bublitz <[EMAIL PROTECTED]> wrote: > On Thursday August 28 2003 17:16, Sok Ann Yap wrote: > > Hi there, > > > May I know how to keep my application from quitting when I > > close the main window? The desired result is to let the > > application to st

[PyKDE] KSystemTray and window closing

2003-08-29 Thread Sok Ann Yap
Hi there, May I know how to keep my application from quitting when I close the main window? The desired result is to let the application to stay in the system tray and not taking any space in the taskbar. Here's the code: from qt import * from kdecore import * from kdeui import * import sys cla

[PyKDE] QDropEvent::source() does not behave correctly

2003-08-14 Thread Sok Ann Yap
According to the documentation... == QWidget * QDropEvent::source () const If the source of the drag operation is a widget in this application, this function returns that source, otherwise it returns 0. The source of the operation is the first parameter to drag

[PyKDE] [PyQt] QListViewItem and repaint

2003-07-06 Thread Sok Ann Yap
Hi there I subclass QListViewItem so that the font will be in green color when the item is chosen either by double clicking or calling a function (let's name it as Z) The color changes properly when I double click or call this function Z directly (clicking on menu or using accel key). However, wh