[gDesklets] Array of Controls



So I've been thinking about how to do this for a while, but I don't quite know
if it'll work.  I'd like to be able to have a dynamic number of a Control
loaded into a desklet, each with their own variables, timers, and properties,
but it doesn't seem possible with the current XML syntax.  It seems like there
are two ways around this:
1) Change the syntax and handling of Controls within gDesklets
2) Create a Control that manages creating, accessing, and destroying instances
of Controls

The second option would be easier for me, since I'm not familiar with the gD
internals.  I'm not quite sure what the interface would be like, or even if
it's possible to do something like:

self.__array.extend(NewControl.__init__())

within a Control.  Any thoughts?

Joe


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]