diff -r 4a76987f8a40 -r 436268f31dae graphics/LD_Objects.py --- a/graphics/LD_Objects.py Sun Dec 09 16:59:15 2007 +0100 +++ b/graphics/LD_Objects.py Sun Dec 09 17:07:45 2007 +0100 @@ -288,15 +288,7 @@ # Method called when a RightUp event have been generated def OnRightUp(self, event, dc, scaling): - pos = GetScaledEventPosition(event, dc, scaling) - # Popup the menu with special items for a block and a connector if one is handled - connector = self.TestConnector(pos, False) - if connector: - self.Handle = (HANDLE_CONNECTOR, connector) - # self.Parent.PopupDivergenceMenu(True) - #else: - # Popup the divergence menu without delete branch - # self.Parent.PopupDivergenceMenu(False) + self.Parent.PopupDefaultMenu() # Refreshes the powerrail state according to move defined and handle selected def ProcessDragging(self, movex, movey): @@ -496,6 +488,11 @@ # Edit the contact properties self.Parent.EditContactContent(self) + # Method called when a RightUp event have been generated + def OnRightUp(self, event, dc, scaling): + # Popup the default menu + self.Parent.PopupDefaultMenu() + # Refreshes the contact model def RefreshModel(self, move=True): self.Parent.RefreshContactModel(self) @@ -695,6 +692,11 @@ # Edit the coil properties self.Parent.EditCoilContent(self) + # Method called when a RightUp event have been generated + def OnRightUp(self, event, dc, scaling): + # Popup the default menu + self.Parent.PopupDefaultMenu() + # Refreshes the coil model def RefreshModel(self, move=True): self.Parent.RefreshCoilModel(self)