I define some check boxes
self.cbH = wx.CheckBox(pnl, -1, " Hamburger", (xPos, yPos), (150, 20))
self.cbB = wx.CheckBox(pnl, -1, “Bacon”, (xPos, yPos + 20), (150, 20))
self.cbM = wx.CheckBox(pnl, -1, “Mushroom”, (xPos, yPos + 40), (150, 20))
Then in a button event I try to display a message based on a checkBox state
def onButton(self, event):
if cbH.checked: # this makes sense to me seems wrong?
msg = "Hamburger"
wx.MessageBox(msg, 'Check Boxes',
wx.OK | wx.ICON_INFORMATION
Not sure how to change the cbH.checked if statement
TIA
Bob