]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxScrolledWindow.py
LessTif 0.93 does not hang in wxWindow::ChangeFont as 0.87 did:
[wxWidgets.git] / wxPython / demo / wxScrolledWindow.py
index 31a388a11e34877d25e18f4443b297251930127f..e0ad207b73c710469d4734ff0e6788034b5e06ca 100644 (file)
@@ -39,6 +39,7 @@ class MyCanvas(wxScrolledWindow):
         EVT_LEFT_UP(self,   self.OnLeftButtonEvent)
         EVT_MOTION(self,    self.OnLeftButtonEvent)
         EVT_PAINT(self, self.OnPaint)
+        ##EVT_MOUSEWHEEL(self, self.OnWheel)
 
 
     def getWidth(self):
@@ -109,7 +110,8 @@ class MyCanvas(wxScrolledWindow):
         for style in [wxDOT, wxLONG_DASH, wxSHORT_DASH, wxDOT_DASH, wxUSER_DASH]:
             pen = wxPen("DARK ORCHID", 1, style)
             if style == wxUSER_DASH:
-                pen.SetDashes([1, 2, 3, 4, 5, 6, 7, 8])
+                pen.SetCap(wxCAP_BUTT)
+                pen.SetDashes([1,2])
                 pen.SetColour("RED")
             dc.SetPen(pen)
             dc.DrawLine(300, y, 400, y)
@@ -188,6 +190,7 @@ class MyCanvas(wxScrolledWindow):
 ##         delta = evt.GetWheelDelta()
 ##         rot = evt.GetWheelRotation()
 ##         linesPer = evt.GetLinesPerAction()
+##         print delta, rot, linesPer
 ##         ws = self.wheelScroll
 ##         ws = ws + rot
 ##         lines = ws / delta
@@ -211,13 +214,14 @@ def runTest(frame, nb, log):
 
 
 
+overview = """\
+"""
 
 
 
 
+if __name__ == '__main__':
+    import sys,os
+    import run
+    run.main(['', os.path.basename(sys.argv[0])])
 
-
-
-
-overview = """\
-"""