Exemplo n.º 1
0
    def __init__(self,**kwargs):
        self.tBackGroundColor=kwargs['background_color']
        Widget.__init__(self,**kwargs)
        cOrcaButtonBehaviour.__init__(self,**kwargs)
        # create the graphics
        with self.canvas:
            Color(self.tBackGroundColor[0],self.tBackGroundColor[1], self.tBackGroundColor[2],self.tBackGroundColor[3])
            self.rect_bg = Ellipse( pos=self.pos, size=self.size, angle_end=kwargs['angle_end'], angle_start=kwargs['angle_start'], source=kwargs['source'])

        self.bind(pos=self.update_graphics_pos,size=self.update_graphics_size)
Exemplo n.º 2
0
    def __init__(self, **kwargs):
        Label.__init__(self,**kwargs)
        cOrcaButtonBehaviour.__init__(self,**kwargs)

        if 'background_color' in kwargs:
            self.background_color=kwargs['background_color']

        if not self.background_color==[0, 0, 0, 0]:
            with self.canvas.before:
                Color(self.background_color[0],self.background_color[1], self.background_color[2],self.background_color[3])
                self.rect_bg = Rectangle(size=self.size,pos=self.pos)
            self.bind(pos=self.update_graphics_pos,size=self.update_graphics_size)
Exemplo n.º 3
0
    def __init__(self, **kwargs):

        Label.__init__(self,**RemoveNoClassArgs(dInArgs=kwargs,oObject=Label))
        cOrcaButtonBehaviour.__init__(self,**kwargs)

        if 'background_color' in kwargs:
            self.background_color=kwargs['background_color']

        if not self.background_color==[0, 0, 0, 0]:
            with self.canvas.before:
                Color(self.background_color[0],self.background_color[1], self.background_color[2],self.background_color[3])
                self.rect_bg = Rectangle(size=self.size,pos=self.pos)
            self.bind(pos=self.update_graphics_pos,size=self.update_graphics_size)
Exemplo n.º 4
0
    def __init__(self, **kwargs):
        self.tBackGroundColor = kwargs['background_color']
        Widget.__init__(self, **RemoveNoClassArgs(kwargs, Widget))
        cOrcaButtonBehaviour.__init__(self, **kwargs)
        # create the graphics
        with self.canvas:
            Color(self.tBackGroundColor[0], self.tBackGroundColor[1],
                  self.tBackGroundColor[2], self.tBackGroundColor[3])
            self.rect_bg = Ellipse(pos=self.pos,
                                   size=self.size,
                                   angle_end=kwargs['angle_end'],
                                   angle_start=kwargs['angle_start'],
                                   source=kwargs['source'])

        self.bind(pos=self.update_graphics_pos, size=self.update_graphics_size)
Exemplo n.º 5
0
    def __init__(self,**kwargs):

        self.tBackGroundColor=[]

        cOrcaButtonBehaviour.__init__(self,**kwargs)
        Widget.__init__(self,**kwargs)

        if 'background_color' in kwargs:
            self.background_color=kwargs['background_color']

        # create the graphics
        with self.canvas:
            Color(self.background_color [0],self.background_color [1], self.background_color [2],self.background_color [3])
            self.rect_bg = Rectangle( pos=self.pos, size=self.size)
        self.bind(pos=self.update_graphics_pos,size=self.update_graphics_size)
Exemplo n.º 6
0
    def __init__(self, **kwargs):

        self.tBackGroundColor = []

        cOrcaButtonBehaviour.__init__(self, **kwargs)
        Widget.__init__(self, **RemoveNoClassArgs(kwargs, Widget))

        if 'background_color' in kwargs:
            self.background_color = kwargs['background_color']

        # create the graphics
        with self.canvas:
            Color(self.background_color[0], self.background_color[1],
                  self.background_color[2], self.background_color[3])
            self.rect_bg = Rectangle(pos=self.pos, size=self.size)
        self.bind(pos=self.update_graphics_pos, size=self.update_graphics_size)
Exemplo n.º 7
0
 def __init__(self,**kwargs):
     Image.__init__(self,**RemoveNoClassArgs(dInArgs=kwargs,oObject=Image))
     cOrcaButtonBehaviour.__init__(self,**kwargs)
Exemplo n.º 8
0
 def __init__(self, **kwargs):
     Image.__init__(self, **RemoveNoClassArgs(kwargs, Image))
     cOrcaButtonBehaviour.__init__(self, **kwargs)
Exemplo n.º 9
0
 def __init__(self,**kwargs):
     Button.__init__(self,**RemoveNoClassArgs(kwargs,Button))
     cOrcaButtonBehaviour.__init__(self,**kwargs)
Exemplo n.º 10
0
 def __init__(self,**kwargs):
     Image.__init__(self,**kwargs)
     cOrcaButtonBehaviour.__init__(self,**kwargs)