Hi Pete,
I thought I'd got the knack of it. But I haven't succeeded yet.
This is the relevant part of my script:
class DlgTourn(QDialog):
def __init__(self, tourn):
QDialog.__init__(self, None, None, True, 1)
self.layout=QVBoxLayout(self)
Am Montag, 26. September 2005 08:04 schrieb Volker Lenhardt:
Hi Pete,
I thought I'd got the knack of it. But I haven't succeeded yet.
This is the relevant part of my script:
class DlgTourn(QDialog):
def __init__(self, tourn):
QDialog.__init__(self, None, None, True, 1)
Hans-Peter Jansen schrieb:
You finally reached the point, where a minimum self containing example
script would be most helpful.
Pete
Ok. Here it is:
#!/usr/bin/env python
#
# focusouttest.py
#
import sys
from qt import *
from qtpe import QPEApplication
class Dlg(QDialog):
def
Hi Volker,
Am Montag, 26. September 2005 12:36 schrieb Volker Lenhardt:
I tried installing the event filter in the dialog itself without a
special Combo class: no effect at all.
This version works as expected for me:
#!/usr/bin/env python
#
# focusouttest.py
#
import sys
from qt import *
Hans-Peter Jansen schrieb:
Notes:
- I removed the Combo class, but it would be pretty straight forward to
transform..
- You need to install the eventFilter on the lineEdit() in this case, and
I admit, event filtering on Qt container widgets involves a bit of voodoo
(but at least it
Am Montag, 26. September 2005 20:01 schrieb Volker Lenhardt:
Pete, I'll have a drink to your health. Thank you, it works.
Glad to hear. Cheers ;-)
The central problem was the message box (it would have given me
direct information with my terminal blocked out of sight).
It's interesting
Hans-Peter Jansen schrieb:
--- focusoutest.py 2005-09-26 17:24:04.743127461 +0200
+++ focusoutest2.py 2005-09-26 22:01:24.099716956 +0200
@@ -38,7 +38,9 @@
if o==cmb.lineEdit():
print bingo
[I'm CCing PyKDE to make it available for others too]
Am Samstag, 24. September 2005 14:31 schrieb Volker Lenhardt:
Hi Pete,
leider haben die Listenmoderatoren meine jeweiligen Antworten noch
nicht eingestellt, so dass ich auch deine Antwort nicht als Mail
erhalten habe. Ich vermute, sie ist
I'm new to Python and Qt.
My environment: Zaurus PDA, Qt/Embedded 2.3.10, Python 2.4.1
I try to use the moment when the focus changes from one combobox to
another. As far as I understand the reference documentation there are
the QWidget.focusInEvent and focusOutEvent.
But I don't get it to
Volker Lenhardt [EMAIL PROTECTED] wrote:
But I don't get it to work. I try to open a message box on focus
change, but it never comes. Focus changes undisturbed. A snippet of
my script:
Are you sure you are giving focus to the Combo box? Use the TAB key to give it
real focus. If you check,
Am Freitag, 23. September 2005 10:12 schrieb Giovanni Bajo:
Volker Lenhardt [EMAIL PROTECTED] wrote:
But I don't get it to work. I try to open a message box on focus
change, but it never comes. Focus changes undisturbed. A snippet of
my script:
Are you sure you are giving focus to the
11 matches
Mail list logo