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

2013-04-21 Thread Donn
On 21/04/2013 09:53, Evan Nemerson wrote: When you load a shared library the memory actually used is shared not just within the same process, but across all processes using that library. In all likelihood, some other process (like gnome-shell) is already using Clutter and your program using Clut

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

2013-04-21 Thread Evan Nemerson
On Sun, 2013-04-21 at 09:21 +0200, Donn wrote: > On 20/04/2013 21:14, Evan Nemerson wrote: > > .. it's generally a good idea to use > > GObject-style construction [1]. In your original example, simply > > replace "public RedSquare()" with "construct" and it should work as > > expected. > > Appre

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

2013-04-21 Thread Donn
On 20/04/2013 21:14, Evan Nemerson wrote: .. it's generally a good idea to use GObject-style construction [1]. In your original example, simply replace "public RedSquare()" with "construct" and it should work as expected. Appreciate that, thanks. I shall read up and hack it thus. A question

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

2013-04-20 Thread Evan Nemerson
On Sat, 2013-04-20 at 13:40 +0200, Donn wrote: > 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 i

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

2013-04-20 Thread Donn
On 20/04/2013 16:27, Sam Wilson wrote: I could be mistaken, but python uses line buffering, so if you put a '\n' on the end of your printf's you might get the text to show up right away. You, Sir, are a genius. Hat tip. \d ___ vala-list mailing list

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

2013-04-20 Thread Sam Wilson
On 13-04-20 07:40 AM, Donn wrote: > 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. I could be mistaken, but python uses line buffering, so if you put a

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

2013-04-20 Thread Donn
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 dee

[Vala] Vala in Python

2013-04-19 Thread Donn
Hi, (I have attached three files - hope that's ok.) I'm trying to make library that I then employ within Python3. I am hacking from the awesome work done here: https://github.com/tliron/pygobject-example (The example "Logging" object works very well.) I'm trying to make a Clutter Actor (in Va