def initFileControls(self):
fileSizer = wx.BoxSizer(orient=wx.VERTICAL)
fileControlBox = widgets.ControlBox(self, label='Data File', orient=wx.VERTICAL)
self.fileTextCtrl = wx.TextCtrl(self,
value=str('SAMPLE DATA'), style=wx.TE_READONLY)
self.fileBrowseButton = wx.Button(self, label='Browse')
fileControlBox.Add(self.fileTextCtrl, proportion=1,
flag=wx.ALL | wx.EXPAND, border=10)
fileControlBox.Add(self.fileBrowseButton, proportion=1,
flag=wx.LEFT | wx.BOTTOM | wx.RIGHT | wx.EXPAND, border=10)
fileSizer.Add(fileControlBox, proportion=1,
flag=wx.LEFT | wx.BOTTOM | wx.RIGHT | wx.EXPAND, border=10)
self.sizer.Add(fileSizer, proportion=1, flag=wx.EXPAND)
评论列表
文章目录