[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fenfire-dev] Reusing VobScene
From: |
Tuomas Lukka |
Subject: |
Re: [Fenfire-dev] Reusing VobScene |
Date: |
Tue, 26 Aug 2003 21:35:23 +0300 |
User-agent: |
Mutt/1.5.4i |
On Tue, Aug 26, 2003 at 03:09:47PM +0300, Matti Katila wrote:
>
> I found the bug of buttons click etc.
>
> in org.fenfire.bin.fenpdf10.py
>
> class Scene:
> def scene(self, vs):
> self.context.states.vs = vs
> scene = views.scene(vs)
> return scene
>
> def mouse(self, ev):
> eventHandler.mouse(ev, self.context.states.vs)
>
>
> This do *not* work.
"does", not "do"
> So, the problem is that demo.py, which we use as
> a framework, creates a scene - an emty one - and that is used to see
> if something is clicked.
Isn't the simplest solution to remove that assignment?
> Now I can heard that you keep saing, doesn't
> view.scene(vs) render in the scene? Yes it does if it doesn't reuse
> vobscene and then the vobscene is totally different than the one
> which is saved in context.states.vs.
Yes, which means that context.states.vs should not be used for anything and
in fact the whole field should be removed in favor of fenPDF.*.lastVs.
Good work, catching the bug!
Tuomas