`width` & `height` are not accessible as globals across imported Python modules in the same directory
還沒有人認領這個 Issue。
評估
研究方向
重現 noc-2-mewnala-port/chapter2/Example_2_6_Attraction 中的行為,其中 setup 定義 width 和 height,而 Attractor.py 和 Mover.py 存取它們。首先追蹤同一目錄中的模組如何接收 Processing 狀態;完成條件是這些模組不必將 width 和 height 傳遞給其類別建構函式即可存取它們。
由索引模型根據 Issue 內容生成。
描述
Unlike in Processing tabs that exist in the same folder, different Python modules in the same directory does not share width and height information. width and height have to be imported to the Class constructor for now as a workaround.
Example:
noc-2-mewnala-port > chapter2 > Example_2_6_Attraction
widthandheightare declared inExample_2_6_Attraction.pysetupAttractor.pyandMover.pyare also trying to accesswidthandheight
Note that there is no error anyway if we try to run the sketch without providingwidthandheightto the Classes, but it isn't exposed to modules outside the one that hassize(width, height)in thesetup
- 主要語言
- Rust
- 星號
- 69
- 分支
- 14
- 平均合併
- 15 天 22 小時
- 30 天內合併 PR
- 3
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
processing/libprocessing 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
processing/libprocessing#233 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
processing/libprocessing#229 ·
-
難度 2/5 1-3 小時 新手友好度 62/100
processing/libprocessing#201 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
processing/libprocessing#194 ·
-
documentation
難度 2/5 1-3 小時 新手友好度 72/100
processing/libprocessing#146 · 1 則留言 ·
查看 processing/libprocessing 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
stratum-mining/stratum#2404 ·
-
難度 2/5 1-3 小時 新手友好度 85/100
-
難度 2/5 1-3 小時 新手友好度 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
難度 2/5 1-3 小時 新手友好度 88/100
-
bug team:backend track:services-maintenance
難度 2/5 1-3 小時 新手友好度 78/100
cowprotocol/services#4950 ·