From 1c92f2983de294f332d79b0ac3634646db03c561 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 12 Oct 2006 08:58:05 +0000 Subject: [PATCH] only need a (1,1) bitmap for measuring git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wx/lib/flatnotebook.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wxPython/wx/lib/flatnotebook.py b/wxPython/wx/lib/flatnotebook.py index 65cfac9e32..fc3199867c 100644 --- a/wxPython/wx/lib/flatnotebook.py +++ b/wxPython/wx/lib/flatnotebook.py @@ -1009,7 +1009,7 @@ class TabNavigatorWindow(wx.Dialog): self._listBox = wx.ListBox(self, wx.ID_ANY, wx.DefaultPosition, wx.Size(200, 150), [], wx.LB_SINGLE | wx.NO_BORDER) mem_dc = wx.MemoryDC() - mem_dc.SelectObject(wx.EmptyBitmap(10,10)) + mem_dc.SelectObject(wx.EmptyBitmap(1,1)) font = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT) font.SetWeight(wx.BOLD) mem_dc.SetFont(font) @@ -1499,7 +1499,7 @@ class FNBRenderer: pc = pageContainer dc = wx.MemoryDC() - dc.SelectObject(wx.EmptyBitmap(10,10)) + dc.SelectObject(wx.EmptyBitmap(1,1)) boldFont = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT) boldFont.SetWeight(wx.FONTWEIGHT_BOLD) @@ -1551,7 +1551,7 @@ class FNBRenderer: pc = pageContainer dc = wx.MemoryDC() - dc.SelectObject(wx.EmptyBitmap(10,10)) + dc.SelectObject(wx.EmptyBitmap(1,1)) # For GTK it seems that we must do this steps in order # for the tabs will get the proper height on initialization @@ -3461,7 +3461,7 @@ class PageContainer(wx.Panel): # Set default page height, this is done according to the system font memDc = wx.MemoryDC() - memDc.SelectObject(wx.EmptyBitmap(10,10)) + memDc.SelectObject(wx.EmptyBitmap(1,1)) normalFont = wx.SystemSettings_GetFont(wx.SYS_DEFAULT_GUI_FONT) boldFont = normalFont boldFont.SetWeight(wx.BOLD) -- 2.45.2