def OnMouseExit(self, *args): SE_BaseClassCore.OnMouseExit(self, *args) if getattr(self, 'Draggable_dragging', 0): return wnd = FittingWindow.GetIfOpen() if wnd is not None: wnd.HiliteFitting(None)
def OnMouseEnter(self, *args): if uicore.uilib.leftbtn: return SE_BaseClassCore.OnMouseEnter(self, *args) self.sr.hint = '' wnd = FittingWindow.GetIfOpen() if wnd is not None: if getattr(self, 'rec', None): wnd.HiliteFitting(self.rec) if self.sr.node and self.sr.node.viewMode == 'icons': self.sr.hint = '%s%s' % ( [uix.GetItemQty(self.sr.node, 'ln') + ' - ', ''][bool( self.rec.singleton)], uix.GetItemName(self.sr.node.item, self.sr.node))
def CloseStationWindows(self): """ Closes stations windows upon undock. """ FittingWindow.CloseIfOpen() ReprocessingWnd.CloseIfOpen()
def OnMouseDown(self, *args): if getattr(self, 'powerType', None): wnd = FittingWindow.GetIfOpen() if wnd is not None: wnd.HiliteFitting(self.rec) uicontrols.SE_BaseClassCore.OnMouseDown(self, *args)