source: src/upDown.py @ 258

Last change on this file since 258 was 258, checked in by mmorton, 3 years ago
File size: 467 bytes
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
11
12class UpDown(Window):
13    def __init__(self, pos, visible, isUp):
14        Window.__init__(self, pos, visible)
15        if isUp:
16            icon = pygame.image.load(mapDir + "left.png")
17        else:
18            icon = pygame.image.load(mapDir+ "right.png")
19
20        self.images.append(Image((self.pos, self.pos), 44, 44, icon))
Note: See TracBrowser for help on using the repository browser.