in reply to GUIs in Tk.:Zinc; a perl module experiment
I already pointed you to the TripleRotatingWheel in the Zinc demo, and the Bubbles on Zinc at Re^3: Tk/Zinc mouse drag performance issues? I use the ztkbubble example as a basis for making almost any type of composite item on Zinc.
I think basically the idea is to bless an object with Zinc as the parent, then make a group in it. Then have methods for the object and internal timers to make it alive. :-)
Other than that, this is beginning to sound like work. :-)
I'm not really an OO oriented type of programmer, but to me there are 2 possible paths....
1. Create your Zinc canvas, and pass it as an option to your new class, like ztkbubble, so you can have a parent widget for your objects.
2. Subclass Zinc, and make your own Zinc class. You can then add your own methods etc to it.
Your script works well here, fast and peppy, but with that grabglobal, I can't start a top to see cpu usage. :-)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: GUIs in Tk.:Zinc; a perl module experiment
by rocklee (Beadle) on Nov 03, 2008 at 15:06 UTC | |
by zentara (Cardinal) on Nov 03, 2008 at 21:06 UTC | |
by rocklee (Beadle) on Nov 04, 2008 at 09:36 UTC |