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

It looks ugly on wxgtk
This reverts commit 8ceaf7b157.
This commit is contained in:
HomeWorld
2011-06-15 10:23:47 +03:00
parent 6d6e6f87a7
commit 340b613f1f

View File

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