Use some black magic for 'tooltip' window show to avoid parent window (pyfa) losing focus (all blames goes to Entity)
This commit is contained in:
@@ -698,10 +698,11 @@ class PFToolTipWindow(wx.Frame):
|
||||
ty += self.padding * 2
|
||||
|
||||
self.SetSize((tx,ty))
|
||||
|
||||
self.Disable()
|
||||
self.SetTransparent(0)
|
||||
self.Refresh()
|
||||
|
||||
|
||||
def OnTimer(self, event):
|
||||
self.transp += 20*self.direction
|
||||
|
||||
@@ -729,6 +730,7 @@ class PFToolTipWindow(wx.Frame):
|
||||
def Show(self, showWnd = True):
|
||||
if showWnd:
|
||||
wx.Frame.Show(self, showWnd)
|
||||
self.Enable()
|
||||
# self.RaiseParent()
|
||||
self.direction = 1
|
||||
self.timer.Start(10)
|
||||
|
||||
Reference in New Issue
Block a user