Example #1
0
 def labels(self, x, y, texts, font_name=FONT_NAME, font_size=14, anchor_x='left', anchor_y='top'):
     for i in range(len(x)):
         lab = pyglet.text.Label(parse_raw_str(texts if type(texts) == str else texts[i]),
                                 batch=self._batch,
                                 color=self._color,
                                 font_name=font_name,
                                 font_size=font_size,
                                 x=x[i], y=y[i],
                                 anchor_x=anchor_x, 
                                 anchor_y=anchor_y)
         self._labels.append(lab)
Example #2
0
 def labels(self, x, y, texts, font_name=FONT_NAME, font_size=14, anchor_x='left', anchor_y='top'):
     for i in range(len(x)):
         lab = pyglet.text.Label(parse_raw_str(texts if type(texts) == str else texts[i]),
                                 batch=self._batch,
                                 color=self._color,
                                 font_name=font_name,
                                 font_size=font_size,
                                 x=x[i], y=y[i],
                                 anchor_x=anchor_x, 
                                 anchor_y=anchor_y)
         self._labels.append(lab)
 def info(self, text):
     self.labels['info'].text = parse_raw_str(text)
 def status(self, text):
     self.labels['status'].text = parse_raw_str(text)
 def tooltip(self, text):
     self.labels['tooltip'].text = parse_raw_str(text)
Example #6
0
 def info(self, text):
     self.labels["info"].text = parse_raw_str(text)
Example #7
0
 def status(self, text):
     self.labels["status"].text = parse_raw_str(text)
Example #8
0
 def tooltip(self, text):
     self.labels["tooltip"].text = parse_raw_str(text)
Example #9
0
 def info(self, text):
     self.labels['info'].text = parse_raw_str(text)