RessourceEditor.py
changeset 235 7b58a3b5b6ec
parent 231 fc2d6cbb8b39
child 239 d12779e971bd
equal deleted inserted replaced
234:b9898f557e9b 235:7b58a3b5b6ec
    23 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    23 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    24 
    24 
    25 import wx
    25 import wx
    26 import wx.grid
    26 import wx.grid
    27 
    27 
    28 if wx.VERSION >= (2, 8, 0):
       
    29     import wx.aui
       
    30 
       
    31     class MDIConfigurationEditor(wx.aui.AuiMDIChildFrame):
       
    32         def __init__(self, parent, tagname, window, controler):
       
    33             wx.aui.AuiMDIChildFrame.__init__(self, parent, -1, title = "")
       
    34             
       
    35             sizer = wx.BoxSizer(wx.HORIZONTAL)
       
    36             
       
    37             self.Viewer = ConfigurationEditor(self, tagname, window, controler)
       
    38             
       
    39             sizer.AddWindow(self.Viewer, 1, border=0, flag=wx.GROW)
       
    40             
       
    41             self.SetSizer(sizer)
       
    42         
       
    43         def GetViewer(self):
       
    44             return self.Viewer
       
    45 
       
    46     class MDIResourceEditor(wx.aui.AuiMDIChildFrame):
       
    47         def __init__(self, parent, tagname, window, controler):
       
    48             wx.aui.AuiMDIChildFrame.__init__(self, parent, -1, title = "")
       
    49             
       
    50             sizer = wx.BoxSizer(wx.HORIZONTAL)
       
    51             
       
    52             self.Viewer = ResourceEditor(self, tagname, window, controler)
       
    53             
       
    54             sizer.AddWindow(self.Viewer, 1, border=0, flag=wx.GROW)
       
    55             
       
    56             self.SetSizer(sizer)
       
    57         
       
    58         def GetViewer(self):
       
    59             return self.Viewer
       
    60 
    28 
    61 #-------------------------------------------------------------------------------
    29 #-------------------------------------------------------------------------------
    62 #                          Configuration Editor class
    30 #                          Configuration Editor class
    63 #-------------------------------------------------------------------------------
    31 #-------------------------------------------------------------------------------
    64 
    32