160025 / SceneView crash
I have a critical issue with the SceneView on the newest beta. Here is a test script, it crashes Pythonista upon running. Is there something I'm missing ?
# coding: utf-8 import ui from scene import * import console class TestScene (Scene): def draw(self): # display hint -------- tint(1,1,1) background(1, 1, 1) fill(1, 0, 0) for touch in self.touches.values(): ellipse(touch.location.x - 25, touch.location.y-25,50,50) class TestView (ui.View): def __init__(self, width=1024, height=1024): self.bg_color = 'white' w, h = ui.get_screen_size() canvas_size = max(w, h) sv = TestView(canvas_size, canvas_size) sv.name = 'Test' sv.present('fullscreen') adv2 = SceneView() adv2.scene = TestScene() adv2.paused=False adv2.bounds = sv.bounds
Thanks for any help on this issue.
omz last edited by
Thanks, I'll look into this. It seems that
SceneViewis somewhat buggy in the current beta – it won't be fixed in the next build (already uploaded), but I have it on my todo list.
Thanks for your reply, keep up the good work !
ccc last edited by
import scene scene.SceneView().bounds = (0, 0, 100, 100)
Thanks for the fix, build 160032 works perfectly !