root/src/leftRight.py @ 261

Revision 261, 0.5 KB (checked in by rthomas, 2 years ago)

main menu structure

Line 
1""""
2Created 23 March 2012
3
4@author: TechTreck
5"""
6
7import pygame
8from window import Window
9from globals import *
10from image import Image
11from text import Text
12from rectangle import Rectangle
13
14class LeftRight(Window):
15    def __init__(self, pos, visible, isRight):
16        Window.__init__(self, pos, visible)
17        self.right = isRight
18        if self.right:
19            icon = pygame.image.load(arrowsDir + "right.png")
20        else:
21            icon = pygame.image.load(arrowsDir + "left.png")
22
23        self.images.append(Image(self.pos, 44, 44, icon))
24
Note: See TracBrowser for help on using the browser.