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.

from pyclutter page looks that you should use pyGObject instead.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.