ia64/xen-unstable

changeset 13981:296d7aa451a3

[ACM] Update the xensec_ezpolicy ACM policy generation tool so
that it works with wxPython under Python 2.5.
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
author kfraser@localhost.localdomain
date Thu Feb 15 14:20:05 2007 +0000 (2007-02-15)
parents 236687fb42d7
children f9c079fca143
files tools/security/xensec_ezpolicy
line diff
     1.1 --- a/tools/security/xensec_ezpolicy	Thu Feb 15 14:18:21 2007 +0000
     1.2 +++ b/tools/security/xensec_ezpolicy	Thu Feb 15 14:20:05 2007 +0000
     1.3 @@ -45,9 +45,6 @@ class orgTreeCtrl(wx.TreeCtrl):
     1.4                               validator, name)
     1.5          self.parent = parent
     1.6          orgs_root = self.AddRoot(text="Organization / Department")
     1.7 -        rootfont = wx.Font(pointSize=12, family=wx.FONTFAMILY_DEFAULT,
     1.8 -                          style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_LIGHT)
     1.9 -        self.SetItemFont(orgs_root, rootfont)
    1.10          self.SetItemBackgroundColour(orgs_root, wx.LIGHT_GREY)
    1.11  
    1.12  
    1.13 @@ -276,6 +273,7 @@ class ConsPanel(wx.Panel):
    1.14      def RefreshMe(self):
    1.15          size=self.parent.GetSize()
    1.16          self.parent.Fit()
    1.17 +        self.parent.SetSize(size + (1,1))
    1.18          self.parent.SetSize(size)
    1.19  
    1.20  
    1.21 @@ -880,7 +878,7 @@ class ezFrame(wx.Frame):
    1.22  
    1.23      def _OpenSpec(self, event):
    1.24          filediag = wx.FileDialog(self, defaultFile="myspec.wld",
    1.25 -                                wildcard="*.wld", style=wx.OPEN | wx.OVERWRITE_PROMPT,
    1.26 +                                wildcard="*.wld", style=wx.OPEN,
    1.27                                  message="Select Workload Definition file name")
    1.28          ret = filediag.ShowModal()
    1.29          name = filediag.GetPath()