python - Are Global variables ok in this scope? -


as (nearly) programmer else, i'm member of 'no global variable' fan club, in cases don't know another, maybe better way solving problem.

for example @ moment i'm programming game in pygame , i've got mouse class example holds actual mode, select, aim or move. of course have change mode several times , in several functions, here problem, if mouse-object isn't global, don't know how 'sync' object in different functions.

maybe give me hint how solve problem or if not 'i case global variables great full' anyway please @ least 1 of these 2 things :)

leon


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -