Set visibility property always to the entry widget
When the password widget has autocomplete activated, the entry is a combobox. Closes #13166 (grafted from e159bd2cd8bf9aa408ce8cda144ef41195f01ea3) --HG-- branch : 6.0
This commit is contained in:
@@ -171,4 +171,8 @@ class Password(Char):
|
||||
self.visibility_checkbox, expand=False, fill=True, padding=0)
|
||||
|
||||
def toggle_visibility(self, button):
|
||||
self.entry.props.visibility = not self.entry.props.visibility
|
||||
if self.autocomplete:
|
||||
entry = self.entry.get_child()
|
||||
else:
|
||||
entry = self.entry
|
||||
entry.props.visibility = not self.entry.props.visibility
|
||||
|
||||
Reference in New Issue
Block a user