def setFillColor(self, color=None, rgb=None):
        '''
		Sets the color used to display the filled region of this oval.
		
		@type color: string
		@type rgb: int
		@param color: will override rgb parameter
		@rtype: void
		'''
        self.fillColor = color
        if (color != None and color != ""):
            rgb = gwindow.convertColorToRGB(color)
        if (rgb != None):
            self.fillColor = gwindow.convertRGBToColor(rgb)
        platform.Platform().setFillColor(self, self.fillColor)
Esempio n. 2
0
	def setFillColor(self, color = None, rgb = None):
		'''
		Sets the color used to display the filled region of this oval.
		
		@type color: string
		@type rgb: int
		@param color: will override rgb parameter
		@rtype: void
		'''
		self.fillColor = color
		if(color != None and color != ""):
			rgb = gwindow.convertColorToRGB(color)
		if(rgb != None):
			self.fillColor = gwindow.convertRGBToColor(rgb)
		platform.Platform().setFillColor(self, self.fillColor)
    def setFillColor(self, color=None, rgb=None):
        '''
		Sets the color used to display the filled region of this arc.
		Colors are specified as strings as described in the notes for the setColor method.
		
		@type color: string
		@type rgb: int
		@param color: will override rgb
		@rtype: void
		'''
        self.fillColor = color
        if (color != None and color != ""):
            rgb = gwindow.convertColorToRGB(color)
        if (rgb != None):
            self.fillColor = gwindow.convertRGBToColor(rgb)
        platform.Platform().setFillColor(self, self.fillColor)
Esempio n. 4
0
	def setFillColor(self, color=None, rgb=None):
		'''
		Sets the color used to display the filled region of this arc.
		Colors are specified as strings as described in the notes for the setColor method.
		
		@type color: string
		@type rgb: int
		@param color: will override rgb
		@rtype: void
		'''
		self.fillColor = color
		if(color != None and color != ""):
			rgb = gwindow.convertColorToRGB(color)
		if(rgb != None):
			self.fillColor = gwindow.convertRGBToColor(rgb)
		platform.Platform().setFillColor(self, self.fillColor)
    def setColor(self, color=None, rgb=None):
        '''
		Sets the color used to display this object.  The color parameter is
		usually one of the predefined color names:
		
			- BLACK,
			- BLUE,
			- CYAN,
			- DARK_GRAY,
			- GRAY,
			- GREEN,
			- LIGHT_GRAY,
			- MAGENTA,
			- ORANGE,
			- PINK,
			- RED,
			- WHITE,
			- YELLOW.
 
		The case of the individual letters in the color name is ignored, as
		are spaces and underscores, so that the color DARK_GRAY
		can be written as "Dark Gray".
 
		The color can also be specified as a string in the form
		"#rrggbb" where rr, gg, and
		bb are pairs of hexadecimal digits indicating the
		red, green, and blue components of the color.
		
		@type color: string
		@param color: takes precedence over rgb
		@type rgb: int
		@rtype: void
		'''
        if (color != None):
            rgb = gwindow.convertColorToRGB(color)

        if (rgb == None): return

        self.color = gwindow.convertRGBToColor(rgb)
        platform.Platform().setColor(self, self.color)
Esempio n. 6
0
	def setColor(self, color=None, rgb=None):
		'''
		Sets the color used to display this object.  The color parameter is
		usually one of the predefined color names:
		
			- BLACK,
			- BLUE,
			- CYAN,
			- DARK_GRAY,
			- GRAY,
			- GREEN,
			- LIGHT_GRAY,
			- MAGENTA,
			- ORANGE,
			- PINK,
			- RED,
			- WHITE,
			- YELLOW.
 
		The case of the individual letters in the color name is ignored, as
		are spaces and underscores, so that the color DARK_GRAY
		can be written as "Dark Gray".
 
		The color can also be specified as a string in the form
		"#rrggbb" where rr, gg, and
		bb are pairs of hexadecimal digits indicating the
		red, green, and blue components of the color.
		
		@type color: string
		@param color: takes precedence over rgb
		@type rgb: int
		@rtype: void
		'''
		if(color != None): 
			rgb = gwindow.convertColorToRGB(color)
			
		if(rgb == None): return
		
		self.color = gwindow.convertRGBToColor(rgb)
		platform.Platform().setColor(self, self.color)