示例#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
示例#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
示例#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
示例#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)
示例#5
0
 def __init__(self, field) -> None:
     FieldInput.__init__(self, field)
     Win.__init__(self)
     self.last_key = 'KEY_RIGHT'
     self.value = field.autojoin
示例#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
示例#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)
示例#8
0
 def __init__(self, field) -> None:
     FieldInput.__init__(self, field)
     Win.__init__(self)
     self.last_key = 'KEY_RIGHT'
     self.value = field.autojoin
示例#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