Thread
:
[Announce] Advanced Clock Plugin
View Single Post
Wonko
2010-12-25 , 10:08
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#
8
I just uploaded version 0.2.0 to extras-devel.
New in this version are two more clocks to choose from: an analog clock and a decimal clock including the date.
Currently, the date format is "dd.mm.(yy)yy".
Furthermore, it should be straightforward to create custom clocks.
Just have a look at the provided versions in "/usr/lib/advanced-clock-plugin/clocks".
To get started it's probably best to simply copy an existing clock and give it a new name.
In the current implementation it is important that the file name and the class name are exactly the same (case sensitive).
The return value of the "get_name()" function is the name which is used in the selection dialog.
In order for the new clocks being available you need to restart the status menu:
Code:
pkill -f /usr/bin/hildon-status-menu
If you want some more descriptive debug output just start it as follows:
Code:
DEBUG_OUTPUT=1 /usr/bin/hildon-status-menu
Note: this will leave hildon-status-menu in foreground, hence, you have to terminate it with CTRL-C.
Else, you could append a "&" to that line.
Edit: Advanced Clock Plugin uses Cairo.
There are a number of tutorials out there, e.g.:
http://zetcode.com/tutorials/pygtktutorial/drawingII
http://www.pygtk.org/articles/cairo-...tk-widgets.htm
Attached Images
__________________
MeePasswords
---
Q To-Do
---
QZeeControl
Advanced Clock Plugin
---
Binary Clock
,
Desktop Version
---
libswt-hildon
Stultitia Simplex
---
To-Do-O
---
VU Meter
---
Zeecontrol
My homepage with assorted posts about my apps, Qt/QML, etc.:
http://ruedigergad.com
Last edited by Wonko; 2010-12-25 at
10:30
. Reason: Add some links with respect to Cairo.
Quote & Reply
|
The Following 14 Users Say Thank You to Wonko For This Useful Post:
Bahador
,
bingbings
,
CasTTeLLo
,
cheve
,
dashti
,
gordonshowers
,
Hootenholler
,
Megaltariak
,
Mentalist Traceur
,
OVK
,
Sash
,
skykooler
,
theonelaw
,
try-alls
Wonko
View Public Profile
Send a private message to Wonko
Find all posts by Wonko