def vai(self, ev=NoEv()): # self.elt = Popup.POP.popup ev.stopPropagation() self.cena.elt <= Popup.POP.popup Texto.put_area() Popup.POP.area.html = '' Popup.POP.area <= self.area Popup.POP.mostra(lambda *_: None, self.tit, self.txt) Popup.POP.esconde = self.esconde return False
def _click(self, ev=NoEv()): self.xy = (ev.x, ev.y) ev.stopPropagation() return self.vai(ev)
def indo(self, ev=NoEv()): char = ev.keyCode if ev.keyCode else ev.which # self.t.append('{}{}{}'.format(chr(char), MU, str(window.Date.now())[-6:])) t = str(window.Date.now())[-7:] self.t.append('{}{}{}'.format(chr(char), MU, t))
def sai(self, _=NoEv()): j = '{}'.format(PR) t = self.area.value if self.area else '' return t, j.join(self.t)
def _esconde(self, ev=NoEv()): ev.preventDefault() ev.stopPropagation() self._esconde() return False
def vai(self, ev=NoEv()): # self.elt = Popup.POP.popup ev.stopPropagation() self.cena.elt <= Popup.POP.popup self.mostra(self.tit, self.txt, act=self.esconde) return False
def esconde(self, ev=NoEv()): pass