![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2005
Posts: 10
Rep Power: 0
![]() |
I want to write a program that will lock screen when it is run and ask for username and password. I want to write it in python. The username and password is stored in my PostgreSql database.
Can anyone help or suggest some important links or some sample scripts to accomplish this task. thinkgeek |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
I would say just call xlock from Python, but you'd need some magic to make that work with a custom username/password (it takes a -cpasswd option that reads an alternative password file, but I don't think you can set the username).
I'd probably just have a look at this simple locking application, port it to Python with xlib-python, and then modify it to use a username/password from your database. A fair bit of work, but I can't think of anything better at the moment. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|