[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] lineedit on focus
From: Danu Kusmana <danu () limabit ! com>
Date: 2003-01-26 13:10:06
Message-ID: 1043586606.8365.13.camel () linux ! site
[Download RAW message or body]
I set the input mask with:
self.EntryUmur.setInputMask("99")
then I want that when user click on the line edit the cursor prosition
on 0, but it never happened.
I tried:
self.EntryUmur.focusInEvent(self.test())
def test(self):
self.EntryUmur.setCursorPosition(0)
but this method is not general for other line edit.
I dont get it how to reimplement the event filter :P
Can anyone help?
danu
On Tue, 2005-06-28 at 14:21 +0200, Giovanni Bajo wrote:
> Danu Kusmana <danu@limabit.com> wrote:
>
> > Im m trying to find something todo with QLineEdit object when the object
> > recived focus by clicking on it. There aren't any signal like "on focus"
> > for QLineEdit or is there?
>
> Just reimplemet focusInEvent(). In the QFocusEvent you receive there is also
> a reason() method which tells you how the widget got the focus (in case you
> want to do something only if it got focus by mouse).
>
> Giovanni Bajo
>
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic