- clientSize = self.GetClientSize()
- cy = 0
- h = self.GetFirstVisibleItem()
- while h.Ok():
- rect = self.GetBoundingRect(h)
- if rect is not None:
- cy = rect.GetTop()
- dc.DrawLine(0, cy, clientSize.x, cy)
- lastH = h
- h = self.GetNextVisible(h)
-
- rect = self.GetBoundingRect(lastH)
- if rect is not None:
- cy = rect.GetBottom()
- dc.DrawLine(0, cy, clientSize.x, cy)
-
-
-
-class TestValueWindow(wxTreeCompanionWindow):
- def __init__(self, parent, ID, pos=wxDefaultPosition, size=wxDefaultSize, style=0):
- wxTreeCompanionWindow.__init__(self, parent, ID, pos, size, style)
+class TestValueWindow(gizmos.TreeCompanionWindow):
+ def __init__(self, parent, style=0):
+ gizmos.TreeCompanionWindow.__init__(self, parent, -1, style=style)