2008-01-19 00:53:41 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
wx.Panel for operator interface
|
|
|
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
import wx
|
|
|
|
|
|
|
|
import controller
|
2008-01-19 00:53:48 +00:00
|
|
|
import leftpanel
|
2008-01-19 00:53:41 +00:00
|
|
|
|
|
|
|
class MainPanel(wx.Panel):
|
|
|
|
"Operator interface"
|
|
|
|
|
|
|
|
def __init__(self, parent, *args, **kwargs):
|
|
|
|
"Panel constructor"
|
|
|
|
|
|
|
|
wx.Panel.__init__(self, parent, *args, **kwargs)
|
|
|
|
|
2008-01-19 00:53:48 +00:00
|
|
|
controlbook = controller.Controller(self, size=wx.Size(400,300))
|
|
|
|
leftside = leftpanel.LeftPanel(self)
|
2008-01-19 00:53:41 +00:00
|
|
|
|
|
|
|
sizer = wx.BoxSizer(wx.HORIZONTAL)
|
2008-01-19 00:53:48 +00:00
|
|
|
sizer.Add(leftside, 0, wx.GROW|wx.TOP|wx.BOTTOM|wx.LEFT, 15)
|
|
|
|
sizer.Add(controlbook, 1, wx.GROW|wx.ALL, 15)
|
2008-01-19 00:53:41 +00:00
|
|
|
|
|
|
|
self.SetSizerAndFit(sizer)
|
2008-01-19 00:53:48 +00:00
|
|
|
sizer.SetSizeHints(parent)
|
2008-01-19 00:53:41 +00:00
|
|
|
|
|
|
|
# vim: autoindent shiftwidth=4 expandtab textwidth=80
|