| 45 | self.Close() |
| 46 | |
| 47 | def initComponents(self): |
| 48 | self.tree = wx.TreeCtrl(self, id=-1, size=(200, -1)) |
| 49 | self.root = self.tree.AddRoot(ROOT_NAME) |
| 50 | for url in URLS: |
| 51 | self.tree.AppendItem(self.root, url) |
| 52 | self.tree.Expand(self.root) |
| 53 | |
| 54 | self.tabs = fnb.FlatNotebook(self, wx.ID_ANY, |
| 55 | agwStyle=fnb.FNB_NODRAG | fnb.FNB_X_ON_TAB) |
| 56 | # You also have to set the wx.WANTS_CHARS style for |
| 57 | # all parent panels/controls, if it's deeply embedded. |
| 58 | self.tabs.SetWindowStyleFlag(wx.WANTS_CHARS) |
| 59 | |
| 60 | def layoutComponents(self): |
| 61 | sizer = wx.BoxSizer(wx.HORIZONTAL) |