{"id":4790,"date":"2024-12-12T10:59:57","date_gmt":"2024-12-12T10:59:57","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4790"},"modified":"2025-04-30T11:34:41","modified_gmt":"2025-04-30T10:34:41","slug":"checkbox","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/gui\/tkinter-tk-gui-toolkit\/gui-objects\/checkbox","title":{"rendered":"Checkbox"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Create a checkbox<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>    chk_my_checkbox = IntVar()\n    chk_my_checkbox = tk.Checkbutton(root, text=\"Enable Calibration\",variable=chk_my_checkbox_value, onvalue=1, offvalue=0, command=chk_my_checkbox_clicked)\n    chk_my_checkbox.place(x=20, y=20)<\/code><\/pre>\n\n\n\n<h5 class=\"wp-block-heading\">Get checkbox value<\/h5>\n\n\n\n<pre class=\"wp-block-code\"><code>    if (chk_my_checkbox_value.get() == 0):<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Create a checkbox Get checkbox value<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[372],"tags":[],"class_list":["post-4790","post","type-post","status-publish","format-standard","hentry","category-gui-objects"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4790"}],"version-history":[{"count":4,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4790\/revisions"}],"predecessor-version":[{"id":4909,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4790\/revisions\/4909"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}