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!
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!
Ratings & Comments
1 Comment
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!