I am absolute beginner for both Python and Clutter. I copied the following from from a website
import clutter
stage = clutter.Stage()
stage.set_size(400, 400)
label = clutter.Label()
label.set_text("Clutter Label Text")
# If no position is given it defaults to the upper most left corner.
stage.add(label)
stage.show_all()
clutter.main()
When I try this script to run it I am getting
AttributeError: 'module' object has no attribute 'Stage'
can any one help me on this?
Make sure your script file name is not clutter.py
.
If it is, rename it, and make sure there's no clutter.pyc
in the same directory.
Otherwise, it prevents import of clutter
module you want, but imports your own module.