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:
HomeWorld
2012-03-18 20:03:52 +02:00
parent b647f22fa7
commit 2a262e447a

View File

@@ -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)