Python mode tab loading issue

On Python mode the tabs are like distinct modules, you need to import the names from them, it is not like on Java mode that the tabs behave like a single sketch.
It should be something like this:

Main sketch window:

from scenes import scene1, s

def setup():
    print(s)
    scene1()

scenes.py tab

s = 10

def scene1():
    pass
2 Likes