22 #License along with this library; if not, write to the Free Software |
22 #License along with this library; if not, write to the Free Software |
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 from types import * |
26 from types import * |
27 |
|
28 from Viewer import * |
27 from Viewer import * |
29 |
28 |
30 if wx.VERSION >= (2, 8, 0): |
|
31 import wx.aui |
|
32 |
|
33 class SFC_MDIViewer(wx.aui.AuiMDIChildFrame): |
|
34 def __init__(self, parent, tagname, window, controler): |
|
35 wx.aui.AuiMDIChildFrame.__init__(self, parent, -1, title = "") |
|
36 |
|
37 sizer = wx.BoxSizer(wx.HORIZONTAL) |
|
38 |
|
39 self.Viewer = SFC_Viewer(self, tagname, window, controler) |
|
40 |
|
41 sizer.AddWindow(self.Viewer, 1, border=0, flag=wx.GROW) |
|
42 |
|
43 self.SetSizer(sizer) |
|
44 |
|
45 def GetViewer(self): |
|
46 return self.Viewer |
|
47 |
29 |
48 class SFC_Viewer(Viewer): |
30 class SFC_Viewer(Viewer): |
49 |
31 |
50 def __init__(self, parent, tagname, window, controler): |
32 def __init__(self, parent, tagname, window, controler): |
51 Viewer.__init__(self, parent, tagname, window, controler) |
33 Viewer.__init__(self, parent, tagname, window, controler) |