I am new to clutter (and pyclutter ).
I am trying to use pyclutter. So far I have not found a good textbook. I mean nothing that really explains properly. I saw a couple of sample programs, but when I tried to use pyclutter, I did not get any good results.
Commands are available, but using them correctly causes problems. I tried to make a string using pyclutter but couldn't even do this.
My code is:
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()
Maybe my mistakes are really stupid, but I would be very grateful if someone could point me to a good tutorial where I can learn the pyclutter and help me.
source
share