def __init__(self, *args, **kwds): wx.Panel.__init__(self, *args, **kwds) self.settings = self.GetParent().settings szr = wx.BoxSizer(wx.HORIZONTAL) self.SetSizer(szr) self.view_1 = view_2d.hklview_2d(self, -1, size=(480, 480)) self.view_2 = view_2d.hklview_2d(self, -1, size=(480, 480)) self.view_1.SetMinSize((480, 480)) self.view_2.SetMinSize((480, 480)) szr.Add(self.view_1, 1, wx.EXPAND) szr.Add(self.view_2, 1, wx.EXPAND) self.SetMinSize((960, 480)) szr.Fit(self)
def __init__ (self, *args, **kwds) : wx.Panel.__init__(self, *args, **kwds) self.settings = self.GetParent().settings szr = wx.BoxSizer(wx.HORIZONTAL) self.SetSizer(szr) self.view_1 = view_2d.hklview_2d(self, -1, size=(480,480)) self.view_2 = view_2d.hklview_2d(self, -1, size=(480,480)) self.view_1.SetMinSize((480,480)) self.view_2.SetMinSize((480,480)) szr.Add(self.view_1, 1, wx.EXPAND) szr.Add(self.view_2, 1, wx.EXPAND) self.SetMinSize((960,480)) szr.Fit(self)
def create_viewer_panel(self): self.viewer = view_2d.hklview_2d(parent=self, size=(640, 640)) self.viewer.SetMinSize((640, 640))
def create_viewer_panel (self) : self.viewer = view_2d.hklview_2d(parent=self, size=(640,640)) self.viewer.SetMinSize((640,640))