Title: module 'pixie' has no attribute 'PK_SOLID' · Issue #22 · treeform/pixie-python · GitHub
Open Graph Title: module 'pixie' has no attribute 'PK_SOLID' · Issue #22 · treeform/pixie-python
X Title: module 'pixie' has no attribute 'PK_SOLID' · Issue #22 · treeform/pixie-python
Description: This is the source code: import pixie image = pixie.Image(200, 200) image.fill(pixie.Color(1, 1, 1, 1)) paint = pixie.Paint(pixie.PK_SOLID) paint.color = pixie.Color(1, 0, 0, 1) ctx = image.new_context() ctx.fill_style = paint ctx.fill_r...
Open Graph Description: This is the source code: import pixie image = pixie.Image(200, 200) image.fill(pixie.Color(1, 1, 1, 1)) paint = pixie.Paint(pixie.PK_SOLID) paint.color = pixie.Color(1, 0, 0, 1) ctx = image.new_con...
X Description: This is the source code: import pixie image = pixie.Image(200, 200) image.fill(pixie.Color(1, 1, 1, 1)) paint = pixie.Paint(pixie.PK_SOLID) paint.color = pixie.Color(1, 0, 0, 1) ctx = image.new_con...
Opengraph URL: https://github.com/treeform/pixie-python/issues/22
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"module 'pixie' has no attribute 'PK_SOLID'","articleBody":"This is the source code:\r\n```\r\nimport pixie\r\n\r\nimage = pixie.Image(200, 200)\r\nimage.fill(pixie.Color(1, 1, 1, 1))\r\n\r\npaint = pixie.Paint(pixie.PK_SOLID)\r\npaint.color = pixie.Color(1, 0, 0, 1)\r\n\r\nctx = image.new_context()\r\nctx.fill_style = paint\r\n\r\nctx.fill_rect(50, 50, 100, 100)\r\n\r\nimage.write_file(\"examples/square.png\")\r\n```\r\n\r\nI got the following results:\r\nTraceback (most recent call last):\r\n File \"F:\\Python\\Python Project\\Test\\test.py\", line 6, in \u003cmodule>\r\n paint = pixie.Paint(pixie.PK_SOLID)\r\nAttributeError: module 'pixie' has no attribute 'PK_SOLID'","author":{"url":"https://github.com/ZaneHuangPro","@type":"Person","name":"ZaneHuangPro"},"datePublished":"2022-05-26T09:58:38Z","url":"https://github.com/treeform/pixie-python/issues/22"}
| 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:b0deaac0-4122-208d-e493-ca16746f6a19 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D6AA:C5330:189AD0:21B65E:6B0492B2 |
| html-safe-nonce | c8aadc046a82b66b8f5948a074b284d86c05a5c4ee2e91138d167fbea3589252 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkFBOkM1MzMwOjE4OUFEMDoyMUI2NUU6NkIwNDkyQjIiLCJ2aXNpdG9yX2lkIjoiMTEwNTEyMDc2MjM3MDc1NzI5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 47b79dee6c6457ba2454d7a96394d522ad4142df50038d77cd2b02a3b23b9ad9 |
| hovercard-subject-tag | issue:1249356894 |
| github-keyboard-shortcuts | repository,source-code,file-tree,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/treeform/pixie-python/22/issue_layout |
| twitter:image | https://opengraph.githubassets.com/69e2f3f541d76d6a477dc45f995480e6746fc6ac1943f3074b22ebdfe5a3131a/treeform/pixie-python/issues/22 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/69e2f3f541d76d6a477dc45f995480e6746fc6ac1943f3074b22ebdfe5a3131a/treeform/pixie-python/issues/22 |
| og:image:alt | This is the source code: import pixie image = pixie.Image(200, 200) image.fill(pixie.Color(1, 1, 1, 1)) paint = pixie.Paint(pixie.PK_SOLID) paint.color = pixie.Color(1, 0, 0, 1) ctx = image.new_con... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ZaneHuangPro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b297275a74a2c9a35898175c9477837c635d4f579277ebff3b2d6ebd012e247 |
| turbo-cache-control | no-preview |
| go-import | github.com/treeform/pixie-python git https://github.com/treeform/pixie-python.git |
| octolytics-dimension-user_id | 125948 |
| octolytics-dimension-user_login | treeform |
| octolytics-dimension-repository_id | 399247825 |
| octolytics-dimension-repository_nwo | treeform/pixie-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 399247825 |
| octolytics-dimension-repository_network_root_nwo | treeform/pixie-python |
| 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 | b51ce57ca6d4565a42856fc1c9897077c794597f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width