Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def new_batch(self):
self.batch = pyglet.graphics.Batch()
self.info_label = pyglet.text.Label('BOOM!!', font_name=font,
font_size=9, batch=self.batch,
color=(200, 200, 255, 100),
x=160, y=10, group=draw.uiGroup)
# load pyno-logo in left bottom
corner = pkg_resources.resource_stream('pyno', 'imgs/corner.png')
pyno_logo_img = pyglet.image.load('dummyname', file=corner)
self.pyno_logo = pyglet.sprite.Sprite(pyno_logo_img,
batch=self.batch,
group=draw.uiGroup)
self.menu = menu.Menu(self)
# line place-holder
self.line = (draw.Line(self.batch), draw.Line(self.batch))