def __init__(self, uiparent, inputdesc, *args, **kwargs):
if 'on_ok_callback' in kwargs:
self.on_ok_callback = kwargs.pop('on_ok_callback')
else:
self.on_ok_callback = None
if 'on_cancel_callback' in kwargs:
self.on_cancel_callback = kwargs.pop('on_cancel_callback')
else:
self.on_cancel_callback = None
super(AutoGenDialog, self).__init__(uiparent, *args, **kwargs)
self._OM = ObjectManager(self)
well_label = wx.StaticText(self, label=u"Poço:")
self.well_choice = self._create_well_choice()
hbox = wx.BoxSizer(wx.HORIZONTAL)
hbox.Add(well_label, proportion=0, flag=wx.ALL, border=5)
hbox.Add(self.well_choice, proportion=1, flag=wx.EXPAND | wx.ALL, border=5)
self.autogenpanel = AutoGenPanel(self, inputdesc)
button_sizer = self.CreateButtonSizer(wx.OK | wx.CANCEL)
self.Bind(wx.EVT_BUTTON, self.on_button)
vbox = wx.BoxSizer(wx.VERTICAL)
vbox.Add(hbox, proportion=0, flag=wx.EXPAND | wx.ALL, border=5)
vbox.Add(self.autogenpanel, proportion=1, flag=wx.EXPAND | wx.ALL, border=5)
vbox.Add(button_sizer, flag=wx.ALIGN_RIGHT | wx.ALL, border=5)
self.SetSizerAndFit(vbox)
# self.SetSize((400, 800))
评论列表
文章目录