Title: tkinter documentation: font data type error and two minor suggestions · Issue #99089 · python/cpython · GitHub
Open Graph Title: tkinter documentation: font data type error and two minor suggestions · Issue #99089 · python/cpython
X Title: tkinter documentation: font data type error and two minor suggestions · Issue #99089 · python/cpython
Description: Packer Options Anchor: Very minor gripe that this does not include the legal values while the other parameters do. I recommend appending the following sentence for clarity: Legal values are points of the compass: "n", "ne", "e", "se", "s...
Open Graph Description: Packer Options Anchor: Very minor gripe that this does not include the legal values while the other parameters do. I recommend appending the following sentence for clarity: Legal values are points ...
X Description: Packer Options Anchor: Very minor gripe that this does not include the legal values while the other parameters do. I recommend appending the following sentence for clarity: Legal values are points ...
Opengraph URL: https://github.com/python/cpython/issues/99089
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tkinter documentation: font data type error and two minor suggestions","articleBody":"## [Packer Options](https://docs.python.org/3/library/tkinter.html#tk-option-data-types)\r\n### **_Anchor:_** \r\nVery minor gripe that this does not include the legal values while the other parameters do.\r\nI recommend _appending_ the following sentence for clarity:\r\n>Legal values are points of the compass: \"n\", \"ne\", \"e\", \"se\", \"s\", \"sw\", \"w\", \"nw\", and also \"center\".\r\n\r\n## [Tk Option Data Types](https://docs.python.org/3/library/tkinter.html#tk-option-data-types)\r\n### **_Font:_**\r\n> Tk uses a list font name format, such as `{courier 10 bold}`.\r\n\r\nThe example provided does not function, as it is using improper syntax (Note the curly brackets). The section should be corrected to reflect expected usage. This is the definition provided in [`typeshed/stdlib/tkinter/font.pyi : L15`](https://github.com/python/typeshed/blob/main/stdlib/tkinter/font.pyi#L15):\r\n```python\r\n_FontDescription: TypeAlias = (\r\n str # \"Helvetica 12\"\r\n | Font # A font object constructed in Python\r\n | list[Any] # (\"Helvetica\", 12, BOLD)\r\n | tuple[Any, ...]\r\n | _tkinter.Tcl_Obj # A font object constructed in Tcl\r\n)\r\n```\r\n### **_Cursor:_**\r\n> You can also specify a bitmap and mask file of your own. _**See page 179 of Ousterhout’s book.**_\r\n\r\nI recommend _prepending_ the following sentence, as it is far more practical (in most situations) than the bitmap & mask method referenced. \r\n> To specify a cursor file (`.cur` or `.ani`), use the path to the file, preceded with an `@`, as in `cursor=\"@path/to/cursor.cur\"`..\r\n","author":{"url":"https://github.com/Magnymbus","@type":"Person","name":"Magnymbus"},"datePublished":"2022-11-04T09:32:37Z","url":"https://github.com/python/cpython/issues/99089"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:e36399c2-8e42-c636-0bf8-c95a415ac585 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A9CC:26ECEB:49D51CF:5DA5070:6B023A92 |
| html-safe-nonce | 7c3f30525a4ef4c04566534550162101589e57525cc4772c8b25e33bc2006eca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUNDOjI2RUNFQjo0OUQ1MUNGOjVEQTUwNzA6NkIwMjNBOTIiLCJ2aXNpdG9yX2lkIjoiNTg0NzAwNDQ0MDg4Mzc3MjA1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e056501fbdff60aa48f9d4615ceeada5c5299bbab26b1e4e7dad12598c7a4344 |
| hovercard-subject-tag | issue:1435792171 |
| 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/99089/issue_layout |
| twitter:image | https://opengraph.githubassets.com/891dfa155f93f0d0a101ba98708735b318844faadadbfba2b1b75fb736f1dfd7/python/cpython/issues/99089 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/891dfa155f93f0d0a101ba98708735b318844faadadbfba2b1b75fb736f1dfd7/python/cpython/issues/99089 |
| og:image:alt | Packer Options Anchor: Very minor gripe that this does not include the legal values while the other parameters do. I recommend appending the following sentence for clarity: Legal values are points ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Magnymbus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width