def __init__(self, x, y, w, h, p):
     Window.__init__(self, x, y, w, h, p, "Tool Bar")
     self.buttons = []
     self.buttons.append(Button(10, 30, "Select", self.surface, c=(50, 50, 50)))
     self.mytextbox = TextBox(
         00,
         0,
         150,
         "Lorem ipsum dolor sit amet, \n \n \n consectetur adipiscing elit. Proin at porta mauris. Aliquam ultricies venenatis nisi, non feugiat elit consequat at. Suspendisse sollicitudin condimentum mauris, vel consequat lorem ornare sed. Vestibulum eu eros libero. Quisque sed purus non orci tincidunt volutpat et in nisi. Fusce quis cursus urna. Aliquam ipsum urna, dictum a convallis sed, tristique eu lectus. In hac habitasse platea dictumst. Praesent vestibulum, diam sit amet sagittis consequat, lacus velit commodo risus, ac congue erat dui nec diam. ?",
     )
     self.mypane = ScrollPane(10, 120, 170, 200, 400)
     self.inputbox = Input(160, 50, 100)
	def __init__(self, x, y, w, h, p):
		Window.__init__(self,x,y,w,h,p,"Color Picker")	
		self.wheel = ColorWheel(120, 30)
		self.sliders = []
		self.sliders.append(Slider(10,50,100,(0,255), 'red'))
		self.sliders.append(Slider(10,90,100,(0,255), 'green'))
		self.sliders.append(Slider(10,130,100,(0,255), 'blue'))
		self.labels = [] # I call them labels but they're really just buttons without actions!
		self.labels.append(Button(0,30,"Red:", self.surface, (255,255,255)))
		self.labels.append(Button(0,70,"Green:", self.surface, (255,255,255)))
		self.labels.append(Button(0,110,"Blue:", self.surface, (255,255,255)))
		self.buttons = []
		self.buttons.append(Button(10, 160, "Choose", self.surface, (50,50,50)))
		self.current_color_box = pygame.Surface((50,50))
		self.custom_colors = CustomColors(70, 200, 200)
		self.custom_selected = 0
	def __init__(self,x,y,w,h,p):
		Window.__init__(self,x,y,w,h,p)
		self.windows = []
		
		self.windows.append(ColorWheelWindow(100,300,280,260,self.parent))
		self.current_color = (255,100,0)
	
		# blank canvas window
		newdoc = pygame.Surface((640,480))
		newdoc.fill((255,255,255))
		self.windows.append(CanvasWindow(300,300,self.parent,newdoc))
		
		# create toolbar
		self.toolbar = Toolbar(self.parent)
		self.toolbar.items.append(ToolbarButton(0,0,'File', self.parent, ['New', 'Open']))
		self.toolbar.items.append(ToolbarButton(0,0,'View', self.parent, ['Tools', 'Colours', 'Answer this']))
		self.toolbar.render() # item appended, needs to be re-rendered

		self.draw()