Calculator Screenlet

Conky

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 58.0%
Description:

This is the Mac OS X-like calculator for the Dashboard, which you can use for your FREE Linux desktop (Screenlets+Widget Layer)...just extract the folder in /usr/local/share/Screenlets, and then run the Calc from the Screenlets Manager...that's it!Enjoy!

mkoehle1

12 years ago

Hi,

The screenlet looks pretty good, and I was actually working on the same project myself. However, the default size of the screenlet was a little big for my taste, so I went to change the size, and I found that you only resize the drawing area, not the actual size of the screenlet itself. Also, I was testing it and working with the memory buttons and I received this error:

mike@mike-laptop:~$ Traceback (most recent call last):
File "/usr/local/share/screenlets/Calc/CalcScreenlet.py", line 185, in button_press
if not self.detect_button_action(event.x_root-self.x, event.y_root-self.y):
File "/usr/local/share/screenlets/Calc/CalcScreenlet.py", line 233, in detect_button_action
self.maj_result("m+")
File "/usr/local/share/screenlets/Calc/CalcScreenlet.py", line 295, in maj_result
self.mp()
File "/usr/local/share/screenlets/Calc/CalcScreenlet.py", line 312, in mp
self.m += float(self.get_current())
ValueError: empty string for float()

Otherwise, the screenlet looks great, thanks for the contribution!

Report

12345678910
1
product-maker raj7095 Oct 04 2010 9 excellent
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
updated Nov 12 2007
added Nov 12 2007
downloads 24h
0
pageviews 24h 3