I have a CommandDataPlugin that creates a dialog with buttons and a checkbox.
It is easy to get what gadget what clicked, inside the Command method.
But how to I get the value of the checkbox?
I need to know if it is on or off, and Command only tells me what gadget was clicked.
Solved Getting the value of a gadget
You can just ask the control for its value:
def Command(self, id, msg):
if id==ID_FILE:
self.chkFile = self.GetBool(ID_FILE)
(if ID_FILE is the dialog's ID for a checkbox)