[PATCH 1/3] Remove the commented CapsLock handling
Vratislav Podzimek
vpodzime at redhat.com
Wed May 15 12:28:44 UTC 2013
Gtk handles that on its own, we won't need to do it ourselves.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/ui/gui/spokes/password.py | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/password.py b/pyanaconda/ui/gui/spokes/password.py
index ff029ea..1bf55ce 100644
--- a/pyanaconda/ui/gui/spokes/password.py
+++ b/pyanaconda/ui/gui/spokes/password.py
@@ -19,6 +19,7 @@
# Red Hat Author(s): Jesse Keating <jkeating at redhat.com>
#
+# pylint: disable-msg=E0611
from gi.repository import Gtk
from pyanaconda.i18n import _, N_
@@ -28,7 +29,6 @@ from pwquality import PWQError
from pyanaconda.ui.gui.spokes import NormalSpoke
from pyanaconda.ui.gui.categories.user_settings import UserSettingsCategory
from pyanaconda.ui.common import FirstbootSpokeMixIn
-#from _isys import isCapsLockEnabled
__all__ = ["PasswordSpoke"]
@@ -63,16 +63,8 @@ class PasswordSpoke(FirstbootSpokeMixIn, NormalSpoke):
self.confirm.set_placeholder_text(_("The password was set by kickstart."))
def refresh(self):
-# self.setCapsLockLabel()
self.pw.grab_focus()
-# Caps lock detection isn't hooked up right now
-# def setCapsLockLabel(self):
-# if isCapsLockEnabled():
-# self.capslock.set_text("<b>" + _("Caps Lock is on.") + "</b>")
-# self.capslock.set_use_markup(True)
-# else:
-# self.capslock..set_text("")
@property
def status(self):
--
1.7.11.7
More information about the anaconda-patches
mailing list