Exemplo n.º 1
0
 def set_text(self, txt):
     if not self.drawn:
         self._setupScreen()
     
     if len(txt) > self.width:
         txt = txt[:self.width]
     else:
         spaces = (self.width - len(txt)) / 2
         txt = (" " * spaces) + txt
     
     self.label.setText(strip_markup(txt))
     self.processEvents()
Exemplo n.º 2
0
    def set_text(self, txt):
        if not self.drawn:
            self._setupScreen()

        if len(txt) > self.width:
            txt = txt[:self.width]
        else:
            spaces = (self.width - len(txt)) / 2
            txt = (" " * spaces) + txt

        self.label.setText(strip_markup(txt))
        self.processEvents()
Exemplo n.º 3
0
 def set_label(self, txt):
     stripped = strip_markup(txt)
     if stripped != self.display:
         self.display = stripped
         print(self.display)
Exemplo n.º 4
0
 def set_label(self, txt):
     if not self.drawn:
         self._setupScreen()
     
     self.info.setText(strip_markup(txt))
     self.processEvents()
Exemplo n.º 5
0
 def set_label(self, txt):
     stripped = strip_markup(txt)
     if stripped != self.display:
         self.display = stripped
         print(self.display)
Exemplo n.º 6
0
    def set_label(self, txt):
        if not self.drawn:
            self._setupScreen()

        self.info.setText(strip_markup(txt))
        self.processEvents()