Code:
self.CheckBox1 = wx.CheckBox(self, wx.ID_ANY, label='Full Blockage', pos=(10, 40), size=(80, 40), style=0,
validator=wx.DefaultValidator, name='BlurCheckBox')
I am loading the excel from from panel which have been already created only I want that the checkbox in the panel should be dynamic in nature. ielabel='Full Blockage' should be replaced by label='self.sheet.cell(row=self.mro_Frame, column=i).value'
self.mworkbook = load_workbook(filename)
self.sheet = self.mworkbook.active
self.mCheckBox1 = wx.CheckBox(self, wx.ID_ANY, label=self.sheet.cell(row=1, column=j).value, pos=(10, 260), size=(80, 40), style=0,
validator=wx.DefaultValidator, name='M_FullBlockage')
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.