def __init__(self, *args, **kwds): PDFPanel.__init__(self) # begin wxGlade: PlotPanel.__init__ kwds["style"] = wx.TAB_TRAVERSAL wx.Panel.__init__(self, *args, **kwds) self.sizer_4_staticbox = wx.StaticBox(self, -1, "Y") self.sizer_3_staticbox = wx.StaticBox(self, -1, "X") self.xDataCombo = wx.ComboBox(self, -1, choices=[], style=wx.CB_DROPDOWN|wx.CB_READONLY) self.yDataList = KeyEventsListCtrl(self, -1, style=wx.LC_REPORT|wx.LC_NO_HEADER|wx.SUNKEN_BORDER) self.offsetLabel = wx.StaticText(self, -1, "offset", style=wx.ALIGN_RIGHT) self.offsetTextCtrl = wx.TextCtrl(self, -1, "-5", style=wx.TE_PROCESS_ENTER) self.static_line_1 = wx.StaticLine(self, -1) self.plotButton = wx.Button(self, -1, "Plot") self.resetButton = wx.Button(self, -1, "Reset") self.__set_properties() self.__do_layout() self.Bind(wx.EVT_TEXT_ENTER, self.onEnter, self.offsetTextCtrl) self.Bind(wx.EVT_BUTTON, self.onPlot, self.plotButton) self.Bind(wx.EVT_BUTTON, self.onReset, self.resetButton) # end wxGlade self.Bind(wx.EVT_COMBOBOX, self._check, self.xDataCombo) self.Bind(wx.EVT_LIST_ITEM_SELECTED, self._check, self.yDataList) self.Bind(wx.EVT_LIST_ITEM_DESELECTED, self._check, self.yDataList) self.__customProperties()