Closed pvzzombs closed 2 years ago
Processing version: 3.5.4 Python mode for processing 3 3063
Closing this issue. The issue is not a bug. The solution is to use global <global_variable_name>
inside a function to be able use it. Sorry about this. It is my bad.
Output:
The global variable of interest here is named
cowcowcow
. Every time the spacebar is hit, themarkMine
function will then be called. Suprisingly, it cannot access the global variablecowcowcow
. But in the functionsetup
, the stringcowcowcow
is printed in the console, this means that the functionsetup
can access it, but the functionmarkMine
cannot?