Some updates to go with changes in current CVS.
Added wxSplashScreen. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -12,6 +12,7 @@ class MyCanvas(wxScrolledWindow):
|
||||
self.lines = []
|
||||
self.maxWidth = 1000
|
||||
self.maxHeight = 1000
|
||||
self.count = 0
|
||||
|
||||
self.SetBackgroundColour(wxNamedColor("WHITE"))
|
||||
EVT_LEFT_DOWN(self, self.OnLeftButtonEvent)
|
||||
@@ -36,9 +37,12 @@ class MyCanvas(wxScrolledWindow):
|
||||
|
||||
|
||||
def OnPaint(self, event):
|
||||
#self.count += 1
|
||||
#print self.count, "begin paint...",
|
||||
dc = wxPaintDC(self)
|
||||
self.PrepareDC(dc)
|
||||
self.DoDrawing(dc)
|
||||
#print "end paint"
|
||||
|
||||
|
||||
def DoDrawing(self, dc):
|
||||
@@ -108,7 +112,6 @@ class MyCanvas(wxScrolledWindow):
|
||||
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