def __init__(self,parent,**kwargs):
scrolled.ScrolledPanel.__init__(self, parent,**kwargs)
choices = latextounicode(sorted(parent.parent.PP.plotlist.keys()))
self.fieldradiobox = wx.RadioBox(self,label='Field',
style=wx.RA_SPECIFY_ROWS,
choices=choices)
vbox = wx.BoxSizer(wx.VERTICAL)
vbox.Add(self.fieldradiobox, 0, wx.EXPAND|wx.ALL, 10)
self.SetSizer(vbox)
self.SetAutoLayout(1)
self.SetupScrolling(scroll_x=False, scrollToTop=False)
#Fix to prevent jump to top when select
self.Bind(wx.EVT_CHILD_FOCUS, self.on_focus)
评论列表
文章目录