equal
deleted
inserted
replaced
344 if len(tabs) == 1: |
344 if len(tabs) == 1: |
345 return tabs[0] |
345 return tabs[0] |
346 split = None |
346 split = None |
347 for idx, tab in enumerate(tabs): |
347 for idx, tab in enumerate(tabs): |
348 if len(tab["pages"]) == 0: |
348 if len(tab["pages"]) == 0: |
349 raise "Not possible" |
349 raise ValueError, "Not possible" |
350 if tab["size"][0] == rect.width: |
350 if tab["size"][0] == rect.width: |
351 if tab["pos"][1] == rect.y: |
351 if tab["pos"][1] == rect.y: |
352 split = (wx.TOP, float(tab["size"][1]) / float(rect.height)) |
352 split = (wx.TOP, float(tab["size"][1]) / float(rect.height)) |
353 split_rect = wx.Rect(rect.x, rect.y + tab["size"][1] + TAB_BORDER, |
353 split_rect = wx.Rect(rect.x, rect.y + tab["size"][1] + TAB_BORDER, |
354 rect.width, rect.height - tab["size"][1] - TAB_BORDER) |
354 rect.width, rect.height - tab["size"][1] - TAB_BORDER) |
1624 while item.IsOk() and not found: |
1624 while item.IsOk() and not found: |
1625 item_infos = self.ProjectTree.GetPyData(item) |
1625 item_infos = self.ProjectTree.GetPyData(item) |
1626 if (item_infos["name"].split(":")[-1].strip(), item_infos["type"]) == items[0]: |
1626 if (item_infos["name"].split(":")[-1].strip(), item_infos["type"]) == items[0]: |
1627 if len(items) == 1: |
1627 if len(items) == 1: |
1628 self.SelectedItem = item |
1628 self.SelectedItem = item |
1629 self.ProjectTree.SelectItem(item) |
1629 wx.CallAfter(self.ProjectTree.SelectItem, item) |
1630 wx.CallAfter(self.ResetSelectedItem) |
1630 wx.CallAfter(self.ResetSelectedItem) |
1631 return True |
1631 return True |
1632 else: |
1632 else: |
1633 found = self.RecursiveProjectTreeItemSelection(item, items[1:]) |
1633 found = self.RecursiveProjectTreeItemSelection(item, items[1:]) |
1634 else: |
1634 else: |