Hi all. I tried to demo a loading bar using a ShapeNode class. I used self.w as a variable for the width but it won’t update its width when I run the code. What must I change/add?
```
from scene import *
import scene
import ui
class load_bar(scene.ShapeNode):
def init(self, kwargs):
self.w = 0
super().init(path=ui.Path.rect(0,0,self.w,5), fill_color='white', stroke_color=None, shadow=None, kwargs)
class MyScene (Scene):
def setup(self):
self.background_color = 'grey'
self.load = load_bar(position=(200,200), parent=self)
self.load.anchor_point = (0,0)
self.load.w = 0
def update(self):
while self.load.w < 100.0:
self.load.w += 1
if name == 'main':
run(MyScene(), show_fps=False)```