Title: bpo-34936: Fix TclError in tkinter.Spinbox.selection_element() by j4321 · Pull Request #9760 · python/cpython · GitHub
Open Graph Title: bpo-34936: Fix TclError in tkinter.Spinbox.selection_element() by j4321 · Pull Request #9760 · python/cpython
X Title: bpo-34936: Fix TclError in tkinter.Spinbox.selection_element() by j4321 · Pull Request #9760 · python/cpython
Description: Spinbox.selection_element() raises TclError: expected integer but got "none" while it should return the currently selected element according to the docstring. I removed the call to self._getints in Spinbox.selection since the result is never a string of integers. For consistency with the previous behavior, Spinbox.selection still returns () when the result of self.tk.call((self._w, 'selection') + args) is an empty string. I added tests for the Spinbox.selection_element method. https://bugs.python.org/issue34936
Open Graph Description: Spinbox.selection_element() raises TclError: expected integer but got "none" while it should return the currently selected element according to the docstring. I removed the call to self....
X Description: Spinbox.selection_element() raises TclError: expected integer but got "none" while it should return the currently selected element according to the docstring. I removed the call ...
Opengraph URL: https://github.com/python/cpython/pull/9760
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ed97a6c0-500f-da9f-8bab-8d2114eb14de |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E64E:29B748:CF34F6:11F58AA:6A53AB3C |
| html-safe-nonce | 9a61bee74560c6564deef6ce535533421cb1877b457b90897071ff4fefce9fb5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjRFOjI5Qjc0ODpDRjM0RjY6MTFGNThBQTo2QTUzQUIzQyIsInZpc2l0b3JfaWQiOiI3NjM0MTc2MDYyNTcwODY3NTE2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 00441a452b8d6d2a65f81fc09cd8996497e9b2a9830ac564a3f04c97fdbeedab |
| hovercard-subject-tag | pull_request:221220844 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/9760/files |
| twitter:image | https://avatars.githubusercontent.com/u/18469869?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/18469869?s=400&v=4 |
| og:image:alt | Spinbox.selection_element() raises TclError: expected integer but got "none" while it should return the currently selected element according to the docstring. I removed the call to self.... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width