コード例 #1
0
 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)
コード例 #2
0
 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))
コード例 #3
0
ファイル: base.py プロジェクト: nanxijw/Clara-Pretty-One-Dick
 def CloseStationWindows(self):
     """
         Closes stations windows upon undock.
     """
     FittingWindow.CloseIfOpen()
     ReprocessingWnd.CloseIfOpen()
コード例 #4
0
 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)