Hello everyone,
I am trying to use Pyclutter to get a nice working interface for Fedora-tour since standard pygtk doesn't really fit the needs for the dynamic user interface we want to create.
Unfortunately, the code I'm trying to use to create a Timeline doesn't work, and the documentation on pyclutter seems to be fairly sparse.
self.timeline = clutter.Timeline() self.timeline.set_duration(500) self.timeline.set_speed(20)
This should create a working timeline according to [1] but it doesn't, with python complaining about the set_duration method and, I'd assume, the set_speed method. The constructor for the Timeline should support setting these, but that also dies horribly...
Could someone with some expertise in pyclutter give me a helping hand with this code?
[1]: http://www.clutter-project.org/docs/pyclutter/0.9/class- cluttertimeline.html
Ryan Rix
On Sat 19 December 2009 10:58:26 pm you wrote:
Hello everyone,
I am trying to use Pyclutter to get a nice working interface for Fedora-tour since standard pygtk doesn't really fit the needs for the dynamic user interface we want to create.
Unfortunately, the code I'm trying to use to create a Timeline doesn't work, and the documentation on pyclutter seems to be fairly sparse.
Alright, so I dropped the timeline for now, working to get a simple UI to at least show up, without the timeline support; now I have a segfault (wonderful!) in the _clutter.so which pyclutter calls. I'm not sure how to get a useful backtrace out of this from python code, unfortunately.
What follows is my code:
window is created in the method that calls this constructor, it's a fresh window with only window.show() called on it.
def __init__(self,window): pdb.set_trace() self.window = window self.window.set_decorated(False) self.window.resize(400,200) self.window.set_position(gtk.WIN_POS_CENTER_ALWAYS)
embed = cluttergtk.Embed()
fedoraLogoActor = clutter.Texture("../data/fedora-tour-splash.svg")
self.window.add(embed)
embed.realize() embed.set_size_request(400,200) stage = embed.get_stage() stage.add(fedoraLogoActor)
self.window.show_all()
gtk.main()
the pdb trace tells me that the segfault occurs at self.window.show_all()... Any ideas/guidance would be MUCH appreciated :) thanks
Ryan
On Sun 20 December 2009 5:13:09 pm Ryan Rix wrote:
Alright, so I dropped the timeline for now, working to get a simple UI to at least show up, without the timeline support; now I have a segfault (wonderful!) in the _clutter.so which pyclutter calls. I'm not sure how to get a useful backtrace out of this from python code, unfortunately.
I ran it as root to try to get at least some core dump out of it, and it runs flawlessly... :/ Not sure exactly why this is, does anyone have an idea?
On Sun 20 December 2009 6:29:13 pm Ryan Rix wrote:
On Sun 20 December 2009 5:13:09 pm Ryan Rix wrote:
Alright, so I dropped the timeline for now, working to get a simple UI to at least show up, without the timeline support; now I have a segfault (wonderful!) in the _clutter.so which pyclutter calls. I'm not sure how to get a useful backtrace out of this from python code, unfortunately.
I ran it as root to try to get at least some core dump out of it, and it runs flawlessly... :/ Not sure exactly why this is, does anyone have an idea?
Go figure, a reboot solved things... *clueless* oh well