{"id":4963,"date":"2025-12-09T11:26:10","date_gmt":"2025-12-09T11:26:10","guid":{"rendered":"https:\/\/ibex.tech\/python\/?p=4963"},"modified":"2025-12-09T11:26:30","modified_gmt":"2025-12-09T11:26:30","slug":"number-input-box","status":"publish","type":"post","link":"https:\/\/ibex.tech\/python\/gui\/tkinter-tk-gui-toolkit\/dialog-boxes\/number-input-box","title":{"rendered":"Number input box"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Get an integer value<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>from tkinter import simpledialog\n\n    new_value = simpledialog.askinteger(\n    \"Enter New Value\",\n    \"Enter a new value (0\u20131000):\",\n    minvalue = 0,\n    maxvalue = 1000\n    )\n    if new_value is None:\n        return  #user cancelled\n\n    print(\"User entered: \", new_value)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Get an integer value<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[383],"tags":[],"class_list":["post-4963","post","type-post","status-publish","format-standard","hentry","category-dialog-boxes"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4963","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/comments?post=4963"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4963\/revisions"}],"predecessor-version":[{"id":4964,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/posts\/4963\/revisions\/4964"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/media?parent=4963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/categories?post=4963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/python\/wp-json\/wp\/v2\/tags?post=4963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}