Esempio n. 1
0
    def draw_background(self, gc: wx.GraphicsContext):
        """
        Drawing a window background.

        Args: 
            self: the Designer Window to initialize.
            gc (wx.GraphixContext): Graphics context to modify.

        """
        gc.SetPen(wx.Pen(wx.BLACK))
        gc.StrokeLineSegments(self.begin_points, self.end_points)
Esempio n. 2
0
 def process_draw(self, gc: wx.GraphicsContext):
     if len(self.pos):
         if self.sim.progress < self.sim.max:
             pos = self.pos[self.sim.progress - 1]
         else:
             pos = self.pos[-1]
         if pos > 1:
             starts = self.starts[:pos]
             ends = self.ends[:pos]
             gc.SetPen(wx.BLACK_DASHED_PEN)
             gc.StrokeLineSegments(starts, ends)
Esempio n. 3
0
 def draw_background(self, gc: wx.GraphicsContext):
     """
     Drawing the gridlines background.
     """
     gc.SetPen(wx.Pen(wx.BLACK))
     gc.StrokeLineSegments(self.begin_points, self.end_points)