[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] KPasswordDialog and KWallet
From: Hans van Leeuwen <hanz () hanz ! nl>
Date: 2006-11-24 16:43:38
Message-ID: 200611241743.38675.hanz () hanz ! nl
[Download RAW message or body]
Hi all,
Let me start by saying I just started using PyKDE and it's been a lot of fun.
I have never used Python, nor done any GUI-progamming until last week, and
I've already managed to create a few useable programs.
The question I have is regarding KPasswordDialog and KWallet. I'm writing a
program which asks the user for a password, and passes it on to an external
application, which returns an error if the password is incorrect.
I would really like to be able to store the password using KWallet, but I
can't figure out how to do that.
I use the following function:
def getPass():
password = QCString();
prompt = "Enter your password"
KPasswordDialog.getPassword(password, prompt)
return password
It asks for the password and returns the entered value, but there is no "Keep
password" checkbox.
If I use "password = 'foobar'", the checkbox appears, but this is not what I
want, because I don't know the correct password beforehand.
In the KpasswordDialog API-docs I see an option "enableKeep", but I have no
idea how to use it.
Can somebody tell me how I can save my password using Kwallet?
Thanks!
Hans
_______________________________________________
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