Some minor updates, fixes, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5768 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -73,10 +73,19 @@ class MyCanvas(wxScrolledWindow):
|
||||
for a in range(0, 360, 45):
|
||||
dc.DrawRotatedText("Rotated text...", 300, 300, a)
|
||||
|
||||
dc.SetPen(wxTRANSPARENT_PEN)
|
||||
dc.SetBrush(wxBLUE_BRUSH)
|
||||
dc.DrawRectangle(50,500,50,50)
|
||||
dc.DrawRectangle(100,500,50,50)
|
||||
|
||||
#from wxPython import dch
|
||||
#dch.FillRect(dc, wxRect(50, 400, 50, 50), wxBLACK)
|
||||
|
||||
self.DrawSavedLines(dc)
|
||||
dc.EndDrawing()
|
||||
|
||||
|
||||
|
||||
def DrawSavedLines(self, dc):
|
||||
dc.SetPen(wxPen(wxNamedColour('MEDIUM FOREST GREEN'), 4))
|
||||
for line in self.lines:
|
||||
|
Reference in New Issue
Block a user