equal
deleted
inserted
replaced
769 # Draws variable |
769 # Draws variable |
770 def Draw(self, dc): |
770 def Draw(self, dc): |
771 Graphic_Element.Draw(self, dc) |
771 Graphic_Element.Draw(self, dc) |
772 dc.SetPen(MiterPen(wx.BLACK)) |
772 dc.SetPen(MiterPen(wx.BLACK)) |
773 dc.SetBrush(wx.WHITE_BRUSH) |
773 dc.SetBrush(wx.WHITE_BRUSH) |
|
774 dc.SetTextForeground(wx.BLACK) |
774 |
775 |
775 if getattr(dc, "printing", False): |
776 if getattr(dc, "printing", False): |
776 name_size = dc.GetTextExtent(self.Name) |
777 name_size = dc.GetTextExtent(self.Name) |
777 executionorder_size = dc.GetTextExtent(str(self.ExecutionOrder)) |
778 executionorder_size = dc.GetTextExtent(str(self.ExecutionOrder)) |
778 else: |
779 else: |
1009 # Draws connection |
1010 # Draws connection |
1010 def Draw(self, dc): |
1011 def Draw(self, dc): |
1011 Graphic_Element.Draw(self, dc) |
1012 Graphic_Element.Draw(self, dc) |
1012 dc.SetPen(MiterPen(wx.BLACK)) |
1013 dc.SetPen(MiterPen(wx.BLACK)) |
1013 dc.SetBrush(wx.WHITE_BRUSH) |
1014 dc.SetBrush(wx.WHITE_BRUSH) |
|
1015 dc.SetTextForeground(wx.BLACK) |
1014 |
1016 |
1015 if getattr(dc, "printing", False): |
1017 if getattr(dc, "printing", False): |
1016 name_size = dc.GetTextExtent(self.Name) |
1018 name_size = dc.GetTextExtent(self.Name) |
1017 else: |
1019 else: |
1018 name_size = self.NameSize |
1020 name_size = self.NameSize |