Pyfa now properly generates fitting tabs previews

This commit is contained in:
HomeWorld
2010-12-06 17:24:13 +02:00
parent 537a8ec7f0
commit 96839dfec0
2 changed files with 73 additions and 22 deletions

View File

@@ -1196,9 +1196,9 @@ class PFNotebookPagePreview(wx.Frame):
wx.NO_BORDER
| wx.FRAME_NO_TASKBAR
| wx.STAY_ON_TOP)
img = bitmap.ConvertToImage()
img = img.ConvertToGreyscale()
bitmap = wx.BitmapFromImage(img)
# img = bitmap.ConvertToImage()
# img = img.ConvertToGreyscale()
# bitmap = wx.BitmapFromImage(img)
self.title = title
self.bitmap = bitmap
self.SetSize((bitmap.GetWidth(), bitmap.GetHeight()))
@@ -1232,8 +1232,8 @@ class PFNotebookPagePreview(wx.Frame):
def OnTimer(self, event):
self.transp += 20*self.direction
if self.transp > 240:
self.transp = 240
if self.transp > 220:
self.transp = 220
self.timer.Stop()
if self.transp < 0: