[PyKDE] Different event dispatcher on win and linux?

2003-02-12 Thread Willi Richert
Hi, I've attached a little script which uses DnD. On Windows, it works fine. On Linux, the mouseMoveEvent() and mousePressEvent() functions are only invoked on a 1-pixel-width frame around that list box. Why? Any hints? wr #!/usr/bin/env python from sys import argv from qt import * class

[PyKDE] Different event dispatcher on win and linux?

2003-02-12 Thread Willi Richert
Hi, I've attached a little script which uses DnD. On Windows, it works fine. On Linux, the mouseMoveEvent() and mousePressEvent() functions are only invoked on a 1-pixel-width frame around that list box. Why? Any hints? wr #!/usr/bin/env python from sys import argv from qt import * class

Re: [PyKDE] Different event dispatcher on win and linux?

2003-02-12 Thread Willi Richert
On Wednesday 12 February 2003 09:34, Willi Richert wrote: Hi, I've attached a little script which uses DnD. On Windows, it works fine. On Linux, the mouseMoveEvent() and mousePressEvent() functions are only invoked on a 1-pixel-width frame around that list box. Why? Any hints? wr If I do

Re: [PyKDE] PB to compile PyKDE-3.3.2

2003-02-12 Thread Gerard Breiner
Hello, Indeed, it is about kde 2.2.1. I replaced in sip/kstddirs.sip kde 2.2.1 by kde 2.2.2 and run again build.py and make and make install. No more problems. test in interpreter python : from kdecore import kapp (ImportError: cannot import name kapp) from kdecore import DndURL (ImportError:

Re: [PyKDE] PB to compile PyKDE-3.3.2

2003-02-12 Thread Gerard Breiner
Hello, Indeed, it is about kde 2.2.1. I replaced in sip/kstddirs.sip kde 2.2.1 by kde 2.2.2 and run again build.py and make and make install. No more problems. test in interpreter python : from kdecore import kapp (ImportError: cannot import name kapp) from kdecore import DndURL (ImportError:

[PyKDE] menu/actions questions

2003-02-12 Thread Garry Hodgson
i'm trying to create a menu of mail folders for a mail client i'm writing. results so far are good, but i'm a bit mystified about how to get menus to do what i want. so, a couple of questions: 1. in the following code, i create two menu items, Test 1 and Test 2. i insert them into a menu,

Re: [PyKDE] menu/actions questions

2003-02-12 Thread Phil Thompson
On Wednesday 12 February 2003 1:52 pm, Garry Hodgson wrote: i'm trying to create a menu of mail folders for a mail client i'm writing. results so far are good, but i'm a bit mystified about how to get menus to do what i want. so, a couple of questions: 1. in the following code, i create

Re: [PyKDE] menu/actions questions

2003-02-12 Thread Garrett G. Hodgson
PyQt doesn't increase the reference count of objects passed as slots, so a lambda function will get garbage collected unless you explicitly save it somewhere. that did it. thanks! i still wonder if there's a better/more standard way of accomplishing this. -- Garry Hodgson

Re: [PyKDE] PB to compile PyKDE-3.3.2

2003-02-12 Thread Jim Bublitz
On 12-Feb-03 Gerard Breiner wrote: Indeed, it is about kde 2.2.1. I replaced in sip/kstddirs.sip kde 2.2.1 by kde 2.2.2 and run again build.py and make and make install. I'm not sure this will work unless you're also linking with KDE 2.2.2 libs - there's no way to resolve the reference to the

Re: [PyKDE] menu/actions questions

2003-02-12 Thread Garrett G. Hodgson
On Wednesday 12 February 2003 7:54 am, Garrett G. Hodgson wrote: PyQt doesn't increase the reference count of objects passed as slots, so a lambda function will get garbage collected unless you explicitly save it somewhere. that did it. thanks! i still wonder if there's a

Re: [PyKDE] menu/actions questions

2003-02-12 Thread Christian Bird
On Wednesday 12 February 2003 7:54 am, Garrett G. Hodgson wrote: PyQt doesn't increase the reference count of objects passed as slots, so a lambda function will get garbage collected unless you explicitly save it somewhere. that did it. thanks! i still wonder if there's a better/more