Example #1
0
 def __init__(self, field) -> None:
     FieldInput.__init__(self, field)
     Input.__init__(self)
     jid = safeJID(field.jid)
     jid.resource = field.nick or None
     self.text = jid.full
     self.pos = len(self.text)
     self.color = get_theme().COLOR_NORMAL_TEXT
Example #2
0
 def __init__(self, field) -> None:
     FieldInput.__init__(self, field)
     Input.__init__(self)
     jid = safeJID(field.jid)
     jid.resource = field.nick or None
     self.text = jid.full
     self.pos = len(self.text)
     self.color = get_theme().COLOR_NORMAL_TEXT
Example #3
0
 def __init__(self, field) -> None:
     FieldInput.__init__(self, field)
     Input.__init__(self)
     self.text = field.password or ''
     self.pos = len(self.text)
     self.color = get_theme().COLOR_NORMAL_TEXT
Example #4
0
 def __init__(self, field) -> None:
     FieldInput.__init__(self, field)
     Win.__init__(self)
     self.options = ('local', 'remote')
     # val_pos is the position of the currently selected option
     self.val_pos = self.options.index(field.method)
Example #5
0
 def __init__(self, field) -> None:
     FieldInput.__init__(self, field)
     Win.__init__(self)
     self.last_key = 'KEY_RIGHT'
     self.value = field.autojoin
Example #6
0
 def __init__(self, field) -> None:
     FieldInput.__init__(self, field)
     Input.__init__(self)
     self.text = field.password or ''
     self.pos = len(self.text)
     self.color = get_theme().COLOR_NORMAL_TEXT
Example #7
0
 def __init__(self, field) -> None:
     FieldInput.__init__(self, field)
     Win.__init__(self)
     self.options = ('local', 'remote')
     # val_pos is the position of the currently selected option
     self.val_pos = self.options.index(field.method)
Example #8
0
 def __init__(self, field) -> None:
     FieldInput.__init__(self, field)
     Win.__init__(self)
     self.last_key = 'KEY_RIGHT'
     self.value = field.autojoin
Example #9
0
 def __init__(self, field):
     FieldInput.__init__(self, field)
     Input.__init__(self)
     self.text = field.name
     self.pos = len(self.text)
     self.color = get_theme().COLOR_NORMAL_TEXT