`width` & `height` are not accessible as globals across imported Python modules in the same directory
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 50/100
調査の方向性
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時間
- マージ済み PR(30日)
- 3
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 件 ·