Hello everyone, here you can discuss and critique
stockticker, the first desklet I made for adesklets. If
you're into stocks, it might be useful. So far, there are two
bugs which I'd to get rid of. The first is my problem of
refreshing the text dynamically. For most of my script, I
pretty much followed along with asimpleclock in order to
create a buffer, and then refresh it when there is newer
information coming in to avoid flicker. That works great,
however I now get trails of the text when it gets refreshed.
Heres the result:
link.
What's happening is as I'm initially setting up the buffer,
Im setting one for a line of text, then when the second stock
object comes, I'm setting up a second, which is as the size
of the initial buffer plus the second text, and so forth
until I run out of stocks to setup. I cant use these same
parameters when I'm setting up a new buffer, since when I'm
displaying the second stock, everything under it would get
erased. I tried refreshing the buffer to initial width that
is set, but that doesn't work either. Let me know if any
sense can be made out of this. My code is kinda messy, so Ill
try to expain it if necessary.