equal
deleted
inserted
replaced
785 source_panel = panel |
785 source_panel = panel |
786 break |
786 break |
787 if source_panel is not None: |
787 if source_panel is not None: |
788 source_panel_idx = self.GraphicPanels.index(source_panel) |
788 source_panel_idx = self.GraphicPanels.index(source_panel) |
789 |
789 |
790 if (len(source_panel.GetItems()) == 1): |
790 if len(source_panel.GetItems()) == 1: |
791 |
791 |
792 if source_panel_idx < idx: |
792 if source_panel_idx < idx: |
793 self.GraphicPanels.insert(idx, source_panel) |
793 self.GraphicPanels.insert(idx, source_panel) |
794 self.GraphicPanels.pop(source_panel_idx) |
794 self.GraphicPanels.pop(source_panel_idx) |
795 elif source_panel_idx > idx: |
795 elif source_panel_idx > idx: |
855 if source_panel.ItemsIsEmpty(): |
855 if source_panel.ItemsIsEmpty(): |
856 if source_panel.HasCapture(): |
856 if source_panel.HasCapture(): |
857 source_panel.ReleaseMouse() |
857 source_panel.ReleaseMouse() |
858 source_panel.Destroy() |
858 source_panel.Destroy() |
859 self.GraphicPanels.remove(source_panel) |
859 self.GraphicPanels.remove(source_panel) |
860 elif (merge_type != graph_type and len(target_panel.Items) == 2): |
860 elif merge_type != graph_type and len(target_panel.Items) == 2: |
861 target_panel.RemoveItem(source_item) |
861 target_panel.RemoveItem(source_item) |
862 else: |
862 else: |
863 target_panel = None |
863 target_panel = None |
864 |
864 |
865 if target_panel is not None: |
865 if target_panel is not None: |