954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

programming using pyclutter

hello, I am new to clutter (and pyclutter). I have been trying to use pyclutter. I haven't found any good tutorial for it so far. I mean nothin that really explains properly. I saw a couple of example programs but when I tried to use pyclutter I dint get any good results. The commands are anailable but their proper use is what is causing a problem. I tried to render a line using pyclutter but haven't even been able to do that. My code:

import clutter
    from clutter import cogl

    stage = clutter.Stage()
    stage.set_size(400, 400)

    label = clutter.Text()
    label.set_text("line")

    stage.add(label)

    clutter.cogl.set_source_color4ub (255,0,0,255)
    clutter.cogl.path_line(100,100,200,200)
    clutter.cogl.path_stroke()

    stage.show_all()
    stage.connect("destroy",clutter.main_quit)
    clutter.main()

Its possible that my mistakes are really stupid, but i'd be really grateful if anyone could point me to a good tutorial where i can learn clutter(pyclutter) from and help me.

woofers
Newbie Poster
8 posts since May 2010
Reputation Points: 10
Solved Threads: 0
 

from pyclutter page looks that you should use pyGObject instead.

pyTony
pyMod
Moderator
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: