Use wx.MiniFrame for chrometabs preview window as it seems it doesn't steal focus when created(shown)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user