graphics/GraphicCommons.py
changeset 1631 940e20a8865b
parent 1571 486f94a8032c
child 1730 64d8f52bc8c8
equal deleted inserted replaced
1630:f0030c3cd6ab 1631:940e20a8865b
  2893                    wx.Point(self.Pos.x + self.Size[0] - 10, self.Pos.y),
  2893                    wx.Point(self.Pos.x + self.Size[0] - 10, self.Pos.y),
  2894                    wx.Point(self.Pos.x + self.Size[0], self.Pos.y + 10),
  2894                    wx.Point(self.Pos.x + self.Size[0], self.Pos.y + 10),
  2895                    wx.Point(self.Pos.x + self.Size[0], self.Pos.y + self.Size[1]),
  2895                    wx.Point(self.Pos.x + self.Size[0], self.Pos.y + self.Size[1]),
  2896                    wx.Point(self.Pos.x, self.Pos.y + self.Size[1])]
  2896                    wx.Point(self.Pos.x, self.Pos.y + self.Size[1])]
  2897         dc.DrawPolygon(polygon)
  2897         dc.DrawPolygon(polygon)
       
  2898 
       
  2899         # dc.SetBrush call is workaround for the issue with wx.PrinterDC
       
  2900         # with wxPython 3.0 on GNU/Linux (don't remove it)
       
  2901         dc.SetBrush(wx.WHITE_BRUSH)
  2898         lines = [wx.Point(self.Pos.x + self.Size[0] - 10, self.Pos.y),
  2902         lines = [wx.Point(self.Pos.x + self.Size[0] - 10, self.Pos.y),
  2899                  wx.Point(self.Pos.x + self.Size[0] - 10, self.Pos.y + 10),
  2903                  wx.Point(self.Pos.x + self.Size[0] - 10, self.Pos.y + 10),
  2900                  wx.Point(self.Pos.x + self.Size[0], self.Pos.y + 10)]
  2904                  wx.Point(self.Pos.x + self.Size[0], self.Pos.y + 10)]
  2901         dc.DrawLines(lines)
  2905         dc.DrawLines(lines)
       
  2906 
  2902         # Draws the comment content
  2907         # Draws the comment content
  2903         y = self.Pos.y + 10
  2908         y = self.Pos.y + 10
  2904         for idx, line in enumerate(self.Content.splitlines()):
  2909         for idx, line in enumerate(self.Content.splitlines()):
  2905             first = True
  2910             first = True
  2906             linetext = ""
  2911             linetext = ""