Skip to contentSkip to conversation

Make xensec_ezpolicy ready for wx/Python 2.5

PATCH New Reiner Sailer 1 participant 1 message Feb 10, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Make xensec_ezpolicy ready for wx/Python 2.5

Updates xensec_ezpolicy ACM policy generation tool so that it works with wxPython under Python 2.5 as well.

Thanks
Reiner

Signed-off by: Reiner Sailer <[email protected]>

---
 tools/security/xensec_ezpolicy |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
tools/security/xensec_ezpolicy +1 -3
Index: xen-unstable.hg/tools/security/xensec_ezpolicy
===================================================================
@@ -45,9 +45,6 @@ class orgTreeCtrl(wx.TreeCtrl):
                              validator, name)
         self.parent = parent
         orgs_root = self.AddRoot(text="Organization / Department")
-        rootfont = wx.Font(pointSize=12, family=wx.FONTFAMILY_DEFAULT,
-                          style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_LIGHT)
-        self.SetItemFont(orgs_root, rootfont)
         self.SetItemBackgroundColour(orgs_root, wx.LIGHT_GREY)
 
 
@@ -276,6 +273,7 @@ class ConsPanel(wx.Panel):
     def RefreshMe(self):
         size=self.parent.GetSize()
         self.parent.Fit()
+        self.parent.SetSize(size + (1,1))
         self.parent.SetSize(size)
 
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel