From 27e2711406ded3f0f6fa42472b8efb937a302f27 Mon Sep 17 00:00:00 2001 From: Leonardo Date: Fri, 25 Jun 2010 11:09:24 +0200 Subject: [PATCH] Agguinto posizionamento intelligente del cursore all'apertura. --- DrPrintGui/Input.py | 7 +++++++ setup.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/DrPrintGui/Input.py b/DrPrintGui/Input.py index 7064f55..5286dca 100644 --- a/DrPrintGui/Input.py +++ b/DrPrintGui/Input.py @@ -111,6 +111,13 @@ class AuthBlock(gtk.HBox): vbox1.show() vbox2.show() + # If user is given give focus to password, + # otherwise give focus to username + if user is None: + self.user_field.grab_focus () + else: + self.password_field.grab_focus () + def get_username(self): return self.user_field.get_text() diff --git a/setup.py b/setup.py index 9286b82..735c164 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from distutils.core import setup -setup (name='DrPrint', - version='0.3', +setup (name='drprint', + version='0.9.0-rc4', author='Leonardo Robol', author_email='leo@robol.it', url='http://www.robol.it/~leonardo/', -- 2.1.4