Title: IDLE uses incorrect screen dimension units · Issue #120104 · python/cpython · GitHub
Open Graph Title: IDLE uses incorrect screen dimension units · Issue #120104 · python/cpython
X Title: IDLE uses incorrect screen dimension units · Issue #120104 · python/cpython
Description: In two places IDLE uses incorrect unit for screen dimension: cpython/Lib/idlelib/configdialog.py Line 114 in 983efcf self.frame = frame = Frame(self, padding="5px") cpython/Lib/idlelib/searchbase.py Line 89 in 983efcf self.frame = Frame(...
Open Graph Description: In two places IDLE uses incorrect unit for screen dimension: cpython/Lib/idlelib/configdialog.py Line 114 in 983efcf self.frame = frame = Frame(self, padding="5px") cpython/Lib/idlelib/searchbase.p...
X Description: In two places IDLE uses incorrect unit for screen dimension: cpython/Lib/idlelib/configdialog.py Line 114 in 983efcf self.frame = frame = Frame(self, padding="5px") cpython/Lib/idlelib/se...
Opengraph URL: https://github.com/python/cpython/issues/120104
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IDLE uses incorrect screen dimension units","articleBody":"In two places IDLE uses incorrect unit for screen dimension:\r\nhttps://github.com/python/cpython/blob/983efcf15b2503fe0c05d5e03762385967962b33/Lib/idlelib/configdialog.py#L114\r\nhttps://github.com/python/cpython/blob/983efcf15b2503fe0c05d5e03762385967962b33/Lib/idlelib/searchbase.py#L89\r\n\r\nIt uses \"5px\", but the only documented valid suffixes are \"c\", \"i\", \"m\" and \"p\". Tk ignores the rest in versions \u003c 8.7, but in 8.7 and 9.0 this is an error. And this is for good, because \"px\" did not mean pixels, as was expected, but printer's points (1/72 inch).\r\n\r\nIf we want to keep the same look, we should change \"px\" to \"p\". But if it originally should be in pixels, we should remove the suffix. In all other places padding is specified in pixels, and this makes sense, so I believe the latter option is better.\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-120107\n* gh-122740\n* gh-122741\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2024-06-05T11:52:15.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/120104/cpython/issues/120104"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:df99c27a-53a2-b802-cfe0-8a44a5e5de6c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D1DC:284E5C:BF9CAA:109604D:696A8053 |
| html-safe-nonce | fa8ff25ea300fa49547068a96b430e2a762019be753812799027a5c6e0174999 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMURDOjI4NEU1QzpCRjlDQUE6MTA5NjA0RDo2OTZBODA1MyIsInZpc2l0b3JfaWQiOiI3MzkxNjIwNjUzNTUyMTQwMzcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6457391b08509b225aebf4fcaa0cd1513b2a4e44a6013335e6e649fb2ed14a81 |
| hovercard-subject-tag | issue:2335698671 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/python/cpython/120104/issue_layout |
| twitter:image | https://opengraph.githubassets.com/baa3c5c442f7a036fa70bbb709faa408f79607973dc280dc7dce0c2ebc8d4760/python/cpython/issues/120104 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/baa3c5c442f7a036fa70bbb709faa408f79607973dc280dc7dce0c2ebc8d4760/python/cpython/issues/120104 |
| og:image:alt | In two places IDLE uses incorrect unit for screen dimension: cpython/Lib/idlelib/configdialog.py Line 114 in 983efcf self.frame = frame = Frame(self, padding="5px") cpython/Lib/idlelib/searchbase.p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | serhiy-storchaka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 913560fa317c3c5a71e34f9b19253c9f09d02b4b958a86c2a56f4c8541116377 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5998c30593994bf2589055aef7b22d368a499367 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width