diff options
author | Alex <alex@Tiresias.(none)> | 2008-07-02 18:35:04 (GMT) |
---|---|---|
committer | Alex <alex@Tiresias.(none)> | 2008-07-02 18:35:04 (GMT) |
commit | 81d82f884d47259cc0fa5314b935530eacd17b2e (patch) | |
tree | 89a3acf357d626ccdd6b8ffd0347396c7979ced5 /physics.py | |
parent | ccc1c05d89f4b41b78f68bbdcd38fe613c244366 (diff) |
cleaned up menu
Diffstat (limited to 'physics.py')
-rw-r--r-- | physics.py | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -212,7 +212,8 @@ def setTool(tool,discard=None): # setup the menus -menu = MenuClass() +menu = MenuClass() +menu.set_width(size[0]) menu.addItem('Box', callback=setTool) menu.addItem('Circle', callback=setTool) menu.addItem('Triangle', callback=setTool) @@ -240,16 +241,17 @@ while True: # draw output from tools currentTool.draw() - - #Print all the text on the screen
- #text = font.render("Current Tool: "+currentTool.name, True, (100,100,255))
- #textpos = text.get_rect(left=1,top=1)
- #screen.blit(text,textpos) - + # draw the menu menu.draw(screen) + + #Print all the text on the screen
+ text = font.render("Current Tool: "+currentTool.name, True, (255,255,255))
+ textpos = text.get_rect(left=500,top=7)
+ screen.blit(text,textpos) + # Flip Display - pygame.display.flip() + pygame.display.flip() # Try to stay at 30 FPS clock.tick(30) # originally 50
\ No newline at end of file |