Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/s/p/Space-Train-HEAD/glydget/label.py   Space-Train(Download)
    def __init__(self, text='Label'):
        ''' Creates label. '''
 
        self._text = text
        self._label = cached.Label(text = self._text)
        Widget._build(self, batch) #, group)
        self._label.delete()
        self._label = cached.Label(text = self._text, multiline=False,
                                  batch=self._batch, group=self._fg_group,
                                  anchor_x='left', anchor_y='top')

src/s/p/Space-Train-HEAD/glydget/entry.py   Space-Train(Download)
        self._text = text
        self._active = False
        self._label = cached.Label(text = self._text)
        doc = pyglet.text.document.UnformattedDocument(self._text or '')
        self._layout = pyglet.text.layout.IncrementalTextLayout(doc,1,1)
        pyglet.text.layout.IncrementalTextLayout(doc, 1, 1, batch=self._batch).delete()
        if not self._active:
            self._label = cached.Label(text = self._text, multiline=False,
                                       batch=self._batch, group=self._fg_group,
                                       anchor_x='left', anchor_y='top')