Use wx.MiniFrame for chrometabs preview window as it seems it doesn't steal focus when created(shown)

This commit is contained in:
HomeWorld
2011-06-13 22:13:35 +03:00
parent 45afdcf9b0
commit 8ceaf7b157

View File

@@ -1153,9 +1153,9 @@ class PFTabsContainer(wx.Panel):
event.Skip()
class PFNotebookPagePreview(wx.Frame):
class PFNotebookPagePreview(wx.MiniFrame):
def __init__ (self,parent, pos, bitmap, title):
wx.Frame.__init__(self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = pos, size = wx.DefaultSize, style =
wx.MiniFrame.__init__(self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = pos, size = wx.DefaultSize, style =
wx.NO_BORDER
| wx.FRAME_NO_TASKBAR
| wx.STAY_ON_TOP)
@@ -1217,7 +1217,7 @@ class PFNotebookPagePreview(wx.Frame):
def Show(self, showWnd = True):
if showWnd:
wx.Frame.Show(self, showWnd)
self.RaiseParent()
# self.RaiseParent()
self.direction = 1
self.timer.Start(10)
else: