Uhm ok, but this is working but nothing to do with inner class and outter class .
And actually class T method have a self parameter .
Anyway I'm happy you find a way
EDIT : Well parent is a bad name, because usually parent refer to parent Node - Child Node. You can acces to a parent in the node tree by
get_parent(), but whatever.
But what really distrub me is that your inner class for the moment ( godot 3.2.2), can't acces function out of scope soooo, class T it's just an object, you could literaly create a new class in another file, if you give a function like
func go(parent): parent.draw(), well you just applied command pattern design, it could be
So why use inner class ^^ . Anyway not my jam, but if it works for you , fine for me
Edit 2 : As described here : https://stackoverflow.com/questions/2024566/how-to-access-outer-class-from-an-inner-class
So your first statement
It's not in the parent... in Python draw() would be in global scope so this would work. is wrong. I presume in python the key word self is passing . But as you can try in python .
t = T()
will return an error .
But thx to point it out, I have a better view of how inner class work in general