当我点击按钮时,我正试图获取我的复选框的状态。但是,无论是否勾选方框,它始终打印为False。如何检查框是否勾选?
builder = Gtk.Builder()
builder.add_from_file("GUI.glade")
checkButton = builder.get_object("checkButton")
def on_submit(self, button):
status = checkButton.get_active()
print status