Keneraali
|
2010-12-25
, 23:54
|
Posts: 114 |
Thanked: 109 times |
Joined on Nov 2010
@ Finland
|
#21
|
The Following 3 Users Say Thank You to Keneraali For This Useful Post: | ||
|
2010-12-26
, 05:23
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#22
|
The Following User Says Thank You to F2thaK For This Useful Post: | ||
|
2010-12-26
, 07:03
|
Posts: 2,225 |
Thanked: 3,822 times |
Joined on Jun 2010
@ Florida
|
#23
|
but I agree, settings needs to be moved to settings menu..
edit: also the clocks settings are reset to default when you reboot...
The Following User Says Thank You to Mentalist Traceur For This Useful Post: | ||
|
2010-12-26
, 08:29
|
|
Posts: 144 |
Thanked: 75 times |
Joined on Dec 2009
@ Israel
|
#24
|
|
2010-12-26
, 08:30
|
Posts: 671 |
Thanked: 1,630 times |
Joined on Aug 2010
|
#25
|
...
Nice, am looking forward to see some custom clocks.
Meanwhile, I uploaded version 0.3.0-1 to extras-devel.
This version suspends the operation when the display turns off and resumes when the display is turned on again.
Consequently, the battery usage should be significantly reduced.
Furthermore, I added a missing dependency.
It would be nice if all of you who had problems so far could check if this version resolves the issue.
def get_name(): # return "Date Time Clock" return "ISO_8601 Clock" class ISO_8601(clock.Clock): def __init__(self, drawing_area): clock.Clock.__init__(self, drawing_area) def draw_clock(self): self.context.set_font_size(20) # Draw date.in ISO-8601 compliant self.context.move_to(2, 16) # if self.show_seconds : # y = str(self.time.year) # if not self.twelve_hour_mode : # y = y[2:4] # text = y text = str(self.time.year) + "." + str(self.time.month).zfill(2) + "." + str(self.time.day).zfill(2) self.context.text_path(text) self.context.stroke() # Draw time. self.context.move_to(2, 35) h = self.time.hour abrv = "AM" if self.twelve_hour_mode : if h == 0 : h = 12 elif h > 12 : h = h % 12 abrv = "PM" text = str(h).zfill(2) + ":" + str(self.time.minute).zfill(2) if self.show_seconds : text = text + ":" + str(self.time.second).zfill(2) self.context.text_path(text) self.context.stroke() if self.twelve_hour_mode : self.context.set_font_size(10) if self.show_seconds : self.context.move_to(89, 35) else : self.context.move_to(65, 35) self.context.text_path(abrv) self.context.stroke() def resize(self): self.drawing_area.set_size_request(110, 36) # if self.twelve_hour_mode : # if self.show_seconds : # self.drawing_area.set_size_request(110, 36) # else: # self.drawing_area.set_size_request(80, 36) # else : # if self.show_seconds : # self.drawing_area.set_size_request(90, 36) # else: # self.drawing_area.set_size_request(60, 36)
The Following User Says Thank You to theonelaw For This Useful Post: | ||
|
2010-12-26
, 09:59
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#26
|
|
2010-12-26
, 11:11
|
|
Posts: 780 |
Thanked: 855 times |
Joined on Sep 2009
@ Helsinki, Finland
|
#27
|
|
2010-12-26
, 15:48
|
Posts: 456 |
Thanked: 1,580 times |
Joined on Dec 2009
|
#28
|
The Following 5 Users Say Thank You to Wonko For This Useful Post: | ||
|
2010-12-26
, 16:42
|
|
Posts: 118 |
Thanked: 67 times |
Joined on Dec 2009
@ Saint Louis, MO, USA
|
#29
|
The Following User Says Thank You to zvogt For This Useful Post: | ||
|
2010-12-26
, 16:53
|
Posts: 19 |
Thanked: 61 times |
Joined on Aug 2010
@ Finland
|
#30
|
The Following User Says Thank You to Lemonadium For This Useful Post: | ||