> draw_idle tells the canvas to redraw only if not busy,
I think the problem is that my object tree is full of things that are moving
from one frame to another, so the chances are always high that one thing must
be in a new state to the others at any one beat.
This is a class, but what's it's
On Nov 12, 2007 8:56 AM, Donn <[EMAIL PROTECTED]> wrote:
> Well, I am a simple guy and you mention things I don't know about. I could
> (and will) go look those up, but here is my current approach:
> So, I think I'm going to run into problems with timing. The loop is a
> gobject.timeout_add(self.
> if your object can describe itself as a polygon, you can use a "point
> in polygon" test. matplotlib provides some code to do this which is
> extremely fast.
Thanks. I solved this a few days ago. I understand the concept behind the
point in poly (so clever!) but the implementation is a black bo
On Nov 9, 2007 2:51 AM, Donn <[EMAIL PROTECTED]> wrote:
> > What you're looking for is, for some reason or another, known as a
> > "canvas".
> Okay. It seems I am writing my own canvas then. I am stuck on GTL+2.8 for a
> bunch of reasons so I have not been able to run any of the popular canvas
> ap
2007/11/12, Donn <[EMAIL PROTECTED]>:
Hi Donn,
> Well, the reason I asked in this list was to garner suggestions based on
> PyGTK. So far the canvases I've looked at are in C. But I'll take your hint
> and do it myself, restricting questions on the list to specific code.
You are right, I'm not a
> If you want to implement yet another canvas (please don't) have a look
> at the source code of a good canvas and get inspiration (and code)
> from there.
Well, the reason I asked in this list was to garner suggestions based on
PyGTK. So far the canvases I've looked at are in C. But I'll take you
2007/11/9, Donn <[EMAIL PROTECTED]>:
> Okay. It seems I am writing my own canvas then. I am stuck on GTL+2.8 for a
> bunch of reasons so I have not been able to run any of the popular canvas
> apps.
If you are stuck with 2.8 you should try GnomeCanvas then, it doesn't
use cairo for rendering thou
> What you're looking for is, for some reason or another, known as a
> "canvas".
Okay. It seems I am writing my own canvas then. I am stuck on GTL+2.8 for a
bunch of reasons so I have not been able to run any of the popular canvas
apps.
> People on the list might have suggestions for sorting t
On Fri, Nov 09, 2007 at 09:10:57AM +0200, Donn wrote:
> I want to be able to bring "life" to each shape (rep by an object internally)
> such that they:
> * detect mouse enter/leave
> * detect mouse clicks
> * detect key press
What you're looking for is, for some reason or another, known as a
"can
Hello,
I have a rudimentary app going that draws down onto a
gtk.DrawingArea. On each loop they pile up, like so many pixels.
I want to be able to bring "life" to each shape (rep by an object internally)
such that they:
* detect mouse enter/leave
* detect mouse clicks
* detect key press
Being
10 matches
Mail list logo