Beispiel #1
0
 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
Beispiel #2
0
 def _click(self, ev=NoEv()):
     self.xy = (ev.x, ev.y)
     ev.stopPropagation()
     return self.vai(ev)
Beispiel #3
0
 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))
Beispiel #4
0
 def sai(self, _=NoEv()):
     j = '{}'.format(PR)
     t = self.area.value if self.area else ''
     return t, j.join(self.t)
Beispiel #5
0
 def _esconde(self, ev=NoEv()):
     ev.preventDefault()
     ev.stopPropagation()
     self._esconde()
     return False
Beispiel #6
0
 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
Beispiel #7
0
 def esconde(self, ev=NoEv()):
     pass