def user_name_get_value(entry): names = ICLogon.get_user_names() if as_guest.get_active(): text = "%s|%s" % (names[0], entry.get_text()) else: text = "%s|%s" % (entry.get_text(), names[1]) return text
def user_name_set_value(entry, value): names = ICLogon.get_user_names(value=value) if as_guest.get_active(): entry.set_text(names[1]) else: entry.set_text(names[0])
def asGuestCallback(check): names = ICLogon.get_user_names() self.widgets["usernameEntry"].set_text(names[1] \ if check.get_active() else names[0]) self.widgets["passwordLabel"].set_sensitive(not check.get_active()) self.widgets["passwordEntry"].set_sensitive(not check.get_active())
def asGuestCallback(check): names = ICLogon.get_user_names() self.widgets["usernameEntry"].set_text( names[1] if check.get_active() else names[0]) self.widgets["passwordLabel"].set_sensitive(not check.get_active()) self.widgets["passwordEntry"].set_sensitive(not check.get_active())