Commits

German Larrain committed 2ed036f

ars.app.Program: some class constants were merged into tuplesWINDOW_POSITION and WINDOW_SIZE

Comments (0)

Files changed (1)

ars/app/__init__.py

 	DEBUG = False
 	
 	WINDOW_TITLE = "Autonomous Robot Simulator"
-	WINDOW_POSITION_X = 0
-	WINDOW_POSITION_Y = 0
-	WINDOW_SIZE_WIDTH = 1024 #640
-	WINDOW_SIZE_HEIGHT = 768 #480
+	WINDOW_POSITION = (0,0)
+	WINDOW_SIZE = (1024,768) # (width,height)
 	WINDOW_ZOOM = 1.0
 	CAMERA_POSITION = (10,8,10)
 	
 		self.set_key_2_action_mapping()
 		
 		self.gAdapter = gp.VtkAdapter()
-		self.gAdapter.create_window(self.WINDOW_TITLE,
-							 (self.WINDOW_POSITION_X, self.WINDOW_POSITION_Y),
-							 (self.WINDOW_SIZE_WIDTH, self.WINDOW_SIZE_HEIGHT),
-							 zoom=self.WINDOW_ZOOM, 
-							 background_color=self.BACKGROUND_COLOR,
+		self.gAdapter.create_window(self.WINDOW_TITLE, self.WINDOW_POSITION, self.WINDOW_SIZE,
+							 zoom=self.WINDOW_ZOOM, background_color=self.BACKGROUND_COLOR,
 							 cam_position=self.CAMERA_POSITION)
 		
 		self.create_simulation()