Re: [Vala] Vala in Python - Some progress and a question



A follow-up.

Progress
--------
In the python file (test.py) I got the idea to explicitly call the new() method of the RedSquare object. I saw it when I did a dir() in Python.

(I first got the idea when I saw how a Clutter.Color was instanced - with Clutter.Color.new() - in Python, this is deeply weird.)

New Python line 22
rs = Palelib.RedSquare.new()

Then restore the this.canvas.invalidate() call in the vala code under boo(), build it - and the red square appears!

Nice. Odd, but nice.


Question
--------
Why are the various stdout.printf calls not working straight away? When the app is closed they all print - as if they were stored in some off-screen buffer someplace.



\d



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]