The example code you wrote looks amazing. Its going
to take me a while to wrap my head around the Widget class,
but im sure ill learn a lot in the process.
I am glad if it can help. Just let me know if there are
obscure points. I tried my best to not make it too cryptic,
but
Widget still use a
recursive generator, a new-style class interface and a
explicit class attribute while being a fuly valid container
at the same time: it is an awful lot for so few lines.
The reason I dont use image_flip is because it would
limit the type of border you could use. For example: If I
wanted to make a border that had a drop shadow, all the
border images would be different sizes and would look
different, so flipping them wouldn't work.
I did not say you should
always
use
image_flip_* commands, I
said you should probably use them
whenever it is possible - when your borders
show some symmetry, in fact..
Maybe I can include both pixmap and dynamically drawn
borders.
That would be nice... In fact, a sufficiently generic
Border widget could provide
the user most of the effects he would ever want to use,
making the use of precompiled borders a lot less usual, and
also making my previous comment about image flipping mostly
useless.
On another topic, I think you should already consider
submitting your desklet for official inclusion on adesklets
site (see the
documentation
for details on how to proceed -- it is fairly
straigthforward). This way, people could begin to enjoy it,
and you would probably receive more useful feedback. Regards,