72 |
self.connectionNames.sort() |
self.connectionNames.sort() |
73 |
self.connectionCache = {} |
self.connectionCache = {} |
74 |
|
|
|
## EVT_SIZE(self, self.__OnSize) |
|
|
|
|
75 |
self.current = None |
self.current = None |
76 |
|
|
77 |
self.tree = tree = TreeCtrl(self, self) |
self.tree = tree = TreeCtrl(self, self) |
81 |
ConnectionNode(self, tree, root, connection=connection) |
ConnectionNode(self, tree, root, connection=connection) |
82 |
## tree.Expand(root) |
## tree.Expand(root) |
83 |
|
|
|
|
|
|
# scroller.EnableScrolling(False, False) |
|
|
|
|
84 |
sizer = wxBoxSizer(wxVERTICAL) |
sizer = wxBoxSizer(wxVERTICAL) |
85 |
sizer.Add(tree, 1, wxEXPAND|wxALL, 6) |
sizer.Add(tree, 1, wxEXPAND|wxALL, 6) |
86 |
self.SetAutoLayout(True) |
self.SetAutoLayout(True) |
105 |
def createToolbar(self, parent): |
def createToolbar(self, parent): |
106 |
return _SchemaToolbar(parent, self.instance) |
return _SchemaToolbar(parent, self.instance) |
107 |
|
|
|
def __OnSize(self, event): |
|
|
self.scroller.SetSize(self.GetClientSize()) |
|
|
# self.scroller.SetVirtualSize(self.tree.GetSize()) |
|
|
print self.scroller.GetVirtualSize() |
|
|
self.scroller.SetScrollbars(10,10,10,10) |
|
|
event.Skip() |
|
|
|
|
108 |
# Since this class is the root node, we need to |
# Since this class is the root node, we need to |
109 |
# emulate part of the Node class |
# emulate part of the Node class |
110 |
def getColumn(self, i=0): |
def getColumn(self, i=0): |