Example #1
0
 def fill(self, preserve=False):
     self._draw = False
     self._fill = True
     if self._last_brush_color != self._color:
         self.dc.set_fill_color(self._color[0], self._color[1],
                                self._color[2])
         self._last_brush_color = self._color
     self._draw_and_fill()
     self._fill = False
     if not preserve:
         self._fun_stack = []
     return BaseDc.fill(self, preserve)
Example #2
0
 def fill(self, preserve=False):
     self._draw = False
     self._fill = True
     self.dc.SetPen(self.transparent_pen)
     if self._last_brush_color != self._color:
         self._last_brush = wx.Brush(
             wx.Colour(self._color[0], self._color[1], self._color[2]),
             style=wx.SOLID,
         )
         self._last_brush_color = self._color
     self.dc.SetBrush(self._last_brush)
     self._draw_and_fill()
     self._fill = False
     if not preserve:
         self._fun_stack = []
     return BaseDc.fill(self, preserve)
Example #3
0
 def fill(self):
     if not self.calc_only:
         self.ctx.FillPath(self.path)
     self.path = None
     BaseDc.fill(self)