Guest User

Untitled

a guest
Jan 8th, 2013
39
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. import pyglet
  3.  
  4. window = pyglet.window.Window()
  5.  
  6. @window.event
  7. def on_draw():
  8. window.clear()
  9. pyglet.graphics.draw(2, pyglet.gl.GL_QUADS,
  10. ('v2i', (100,100,200,200)),
  11. ('c3B', (255,0,0))
  12. )
  13.  
  14. label = pyglet.text.Label("There should also be a rectangle drawn")
  15. label.draw()
  16.  
  17. pyglet.app.run()
RAW Paste Data