processing / processing/libprocessing
`width` & `height` are not accessible as globals across imported Python modules in the same directory
Nessuno ha ancora preso questa issue.
- Lingua principale
- Rust
- Stelle
- 69
- Fork
- 14
- Merge medio
- 15g 22h
- PR unite (30g)
- 3
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il comportamento in noc-2-mewnala-port/chapter2/Example_2_6_Attraction, dove setup definisce width e height mentre Attractor.py e Mover.py vi accedono. Inizia tracciando il modo in cui i moduli nella stessa directory ricevono lo stato di Processing; il lavoro è completato quando questi moduli possono accedere a width e height senza passarli ai costruttori delle loro classi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python, rust
- Ambito
- api, backend
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 50/100