More for wxPython 2.0b9 (hopefully the last...)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-05-02 02:06:43 +00:00
parent 53920141b5
commit c127177f8d
31 changed files with 456 additions and 276 deletions

View File

@@ -15,8 +15,8 @@ class MyCanvas(wxScrolledWindow):
self.Connect(-1, -1, wxEVT_MOTION, self.OnLeftButtonEvent)
self.SetCursor(wxStockCursor(wxCURSOR_PENCIL))
bmp = wxBitmap('bitmaps/test2.bmp', wxBITMAP_TYPE_BMP)
self.bmp = bmp
#bmp = wxBitmap('bitmaps/image.bmp', wxBITMAP_TYPE_BMP)
#self.bmp = bmp
self.SetScrollbars(20, 20, 50, 50)
@@ -54,9 +54,9 @@ class MyCanvas(wxScrolledWindow):
dc.SetPen(wxGREEN_PEN)
dc.DrawSpline(lst+[(100,100)])
dc.DrawBitmap(self.bmp, 200, 20)
dc.SetTextForeground(wxColour(0, 0xFF, 0x80))
dc.DrawText("a bitmap", 200, 80)
#dc.DrawBitmap(self.bmp, 200, 20)
#dc.SetTextForeground(wxColour(0, 0xFF, 0x80))
#dc.DrawText("a bitmap", 200, 80)
self.DrawSavedLines(dc)
dc.EndDrawing()