processing / processing/libprocessing
`width` & `height` are not accessible as globals across imported Python modules in the same directory
未關閉
還沒有人認領這個 Issue。
A-Mewnala
- 主要語言
- Rust
- 星號
- 69
- 分支
- 14
- 平均合併
- 15 天 22 小時
- 30 天內合併 PR
- 3
描述
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
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
重現 noc-2-mewnala-port/chapter2/Example_2_6_Attraction 中的行為,其中 setup 定義 width 和 height,而 Attractor.py 和 Mover.py 存取它們。首先追蹤同一目錄中的模組如何接收 Processing 狀態;完成條件是這些模組不必將 width 和 height 傳遞給其類別建構函式即可存取它們。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python, rust
- 領域
- api, backend
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 50/100