I'm trying to learn about wxPython running on OS/X (Tiger).
I've been working on a text mode soccer simulation and decided to
attempt to give it a GUI. At the moment I'm just messing around but
hit upon the following behaviour I don't understand...
37 def DrawPitch(self, dc):
38 grass = wx.NamedColour('DARK GREEN')
39
40 dc.BeginDrawing()
41 dc.SetPen(wx.Pen('WHITE', 2))
42 dc.SetBrush(wx.Brush(grass))
43
44 dc.DrawRectangle(self.x1, self.y1,
45 self.x2, self.y2)
46 dc.DrawLine(self.x1 + 50, self.y1, self.x1 + 50, self.y2)
47
48 dc.EndDrawing()
If you look at the picture I attached, you'll see that the vertical
line does not extend all the way to the bottom of the rectangle. since
the rectangle goes vertically to self.y2, and the line extends to
self.y2, would have expected there to be no gap.
What am I doing, or understanding incorrectly?
Thank you very much.