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))
def __init__(self, window):
self.window = window
save_load_img = pyglet.image.load('imgs/save_load_32.png')
self.save_load = pyglet.sprite.Sprite(
save_load_img,
x=800-save_load_img.width-self.offset, y=self.offset,
batch=window.batch, group=uiGroup)
self.save_load.opacity = 100
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))