Tiny little optimization in pfnotebook tab renderer

This commit is contained in:
HomeWorld
2010-11-26 13:30:07 +02:00
parent 4661e42769
commit e2db046d02

View File

@@ -272,6 +272,7 @@ class PFTabRenderer:
self.tabBackBitmap = None
self.cbSize = 5
self.padding = 4
self.font = wx.FontFromPixelSize((0, self.fontSize), wx.SWISS, wx.NORMAL, wx.NORMAL, False)
self.tabImg = img
self.position = (0, 0) # Not used internaly for rendering - helper for tab container
@@ -355,8 +356,6 @@ class PFTabRenderer:
self.tabRegion = None
self.closeBtnRegion = None
self.font = wx.FontFromPixelSize((0, self.fontSize), wx.SWISS, wx.NORMAL, wx.NORMAL, False)
self.InitColors()
self.InitBitmaps()