Agguinto posizionamento intelligente del cursore all'apertura.

Leonardo [2010-06-25 09:09]
Agguinto posizionamento intelligente del cursore all'apertura.
Filename
DrPrintGui/Input.py
setup.py
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/',
ViewGit