
Simple Countdown
Source (link to git-repo or to original if based on someone elses unmodified work):
Description:
A very simple countdown. Just displays the name of the event and the remaining time. Last changelog:
1.5
Text color fixed
1.4
Clicking switches between the countdown display and the date
1.3
Text size changes when the widget is resized
1.2
Fixed: 100% cpu load when event and time was not set
1.1
Fixed: countdown did not start after login
Ratings & Comments
6 Comments
Thank you for the plasmoid. I've been using for a few years, but one thing I'd like is to change the font color to match my other polasmoids. In all others, I can change the color to be 'softer' than Bright White. I have black desktop with a little less than white color eg, rgb 222,222,222. I've tried changing the main.py file: setPen(Qt.white) to Qt.lightGray and font.setBold(True) to False, but the Bright White 00 00 00 remain. Please tell me, us how to change the Font Color. again, thank you, ???????. Landis.
Hi, the color is defined by the palette. You can change the color in the init function like this: palette = self.timeLabel.palette() palette.setColor(QPalette.WindowText, QColor(222,222,222)) self.timeLabel.setPalette(palette) The code is also on github in case you want to add something. https://github.com/benjaminum/simplecountdown best Benjamin
maybe you could add an option to display the time elapsed even after the end of the timer (ex: -00:01:30... -00:01:29...) when I boil an egg or something like that, I often put a counter on my desktop but if I want to let it boil just a little bit more, the timer become useless because it is stopped at 00:00:00. It can be useful too when I don't exactly know when the timer stopped. When the time goes negative, it could be displayed in red or something like that, with a little sound when it reach 00:00:00 Cheers :)
+1 on the counter beyond zero feature. That would be very nice.
what about : - an option to display weeks/month/years not only days - an option to count only working days ?
Nice!