Progress Calendar

Karamba & Superkaramba

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

1
5 .0
Description:

This is a calendar applet that allows you to mark dates to keep track of progress, things accomplished etc. The purpose of this project is to replace a wall calendar and a pen/marker with a karamba theme.

Features:
- 3 possible type of markers that can be applied in any combination to a particular date: line across, filled and empty circle (see screenshot for exmaples)
- config file that let you change font size, color and few other options
- calendar is 12 months and can start at any month/year (see config file)

Requirements:
- python 2.5
- pyqt
- PIL aka python image library (python-imaging package in ubuntu)

Installation and use tips:
To install unpack tar somewhere and open theme in karamba.
- after you changed size options you have to adjust xMarkAdjustment and yMarkAdjustment so that markings are centered on dates (this is a problem and need to be addressed in the future)
- you can lock applet (so that it does not react on left click) by either changing an option in the config file or from menu
- if you want to remove all markings click on a date, don't check any boxes in popup dialog and press ok

Known problems and bugs:
- karamba must be restarted after you changed config file
- contents of tmp folder must be removed after changing size options
- if a day was marked and then markings were changed updates wont go into effect untill you move theme or change desktop
- if you marked some day but then changed starting month and this day is outside calendar's span applet will crash probably (delete progress_calendar.dat to reset markings)

poulsen

11 years ago

Hi,
First of all: I don't know if the widget is dead at the moment? if it is, then it's a shame.

Second: I can't get this widget to work on ubuntu 8.04.

I tried both 1.4 and 1.5.
When I run superkaramba from commandline and try to add the widget to the desktop I get a invisible widget and this output:

Loaded DesktopBasket
sys.path.insert(0, '/home/USERNAME/Downloads/desktopbasket-1.5alpha3.skz')
Starting init...
Loading config
Basket baskets folder : /home/USERNAME/.kde/share/apps/basket/
DesktopBasket version is 1.5alpha3
Config Loaded
Call to initWidget failed
Traceback (most recent call last):
File "/home/USERNAME/Downloads/desktopbasket-1.5alpha3.skz/desktopbasket.py", line 34, in initWidget
File "/home/USERNAME/Downloads/desktopbasket-1.5alpha3.skz/desktopbasket_lib.py", line 75, in __init__
File "/home/USERNAME/Downloads/desktopbasket-1.5alpha3.skz/desktopbasket_lib.py", line 1181, in init_language
TypeError: cannot concatenate 'str' and 'NoneType' objects
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 77, in apport_excepthook
pr['PythonArgs'] = '%r' % sys.argv
AttributeError: 'module' object has no attribute 'argv'

Original exception was:
Traceback (most recent call last):
File "/home/USERNAME/Downloads/desktopbasket-1.5alpha3.skz/desktopbasket.py", line 34, in initWidget
File "/home/USERNAME/Downloads/desktopbasket-1.5alpha3.skz/desktopbasket_lib.py", line 75, in __init__
File "/home/USERNAME/Downloads/desktopbasket-1.5alpha3.skz/desktopbasket_lib.py", line 1181, in init_language
TypeError: cannot concatenate 'str' and 'NoneType' objects

-------------

I don't get any popup messag about a missing module or any thing.


Any sugestions?

Report

poulsen

11 years ago

CRAP wrong this not where I ment to comment. How to delete it again??

Report

Fiber

12 years ago

First of al, its like slackware: Simple, easy. I tried Rainlendar and thats far too complex for mark my shifts, this is much better and simpler.

I would like to ask some features, because i don't "speak" python:

1: Ability to mark the current date with something: triangle / square etc.

2: I'd like to specify how much months should show in the 'box'. (12 is too much for me, 3-4 is more than enough) Maybe with startdate - enddate in config.

3: If I mark a date, and pick a color for it, it should remember at least the color next time when I click to mark something.

4: Highlight the weekends or make a Monday-Sunday line top of the month.

Btw keep up the good work, except the tons of dependencies its a handy and good stuff.

Report

suslik

13 years ago

A few pointers:
- SuperKaramba v0.5 and up (KDE4) supports loading SVG files AND drawing directly to an image point-by-point. So, there will be no need to save-n-load.

- This is a cool effort, but after trying Rainlendar (rainlendar.net) every Karamba calendar feels like a hack. :( I'd just recommend using that, until KDE 4 becomes a real desktop platform and creating cals for it starts to make sense.

Report

C

triacontahedron

13 years ago

I am also eagerly waiting on kde 4 and plasma (and hopefully migrate this theme to it when it becomes more stable).

Rainlendar is a nice and polished application but still it does not have features I want. This theme is more like huge poster calendar on a wall on which you can draw and put different marks. That is why it shows 12 month and has somewhat simplistic appearance.

Report

KNT

13 years ago

...idea but still a long road ahead...

1) No utf support
2) The StartingYear and StartingMonth parameters should be replaced with one: "MonthsBack". This would work by showing the selected number of months backwards form the current date. This would also add flexibility for showing user defined number of months.
3) Very large... Too large... Doing the above would help.
4) You don't need to restart the whole SuperKaramba after changing the configuration. Just the theme.
5) For some reason the days won't show up (requirements are met, at least for packages).

Report

C

triacontahedron

13 years ago

Thank you for comments. About what you said:

5) It is interesting problem, i have no idea why days dont show up. I would appreciate if you start karamba in a terminal, open applet and then post output (if there is any). Hopefully, we can figure out what is the problem then.

1) utf might be a good thing to add
2) it is a matter of taste but MonthsBack is a good idea and I can see how it is better in some cases. I will try to add as an alternative
3) to address size problem i was thinking to restrict applet to certain desktops. The number of displayed months will be and a configurable option at some point i hope.
4) it is safer to restart karamba after changing applet. Karamba keeps some data in memory even if you uninstall theme.

Report

KNT

13 years ago

5) This what I get:

knt@laktok:~/KDE-look/Superkaramba/progress_calendar_0.1$ superkaramba progress_calendar.theme
Loaded my progression calendar!
sys.path.insert(0, '/home/knt/KDE-look/Superkaramba/progress_calendar_0.1/')
Call to initWidget failed
Traceback (most recent call last):
File "/home/knt/KDE-look/Superkaramba/progress_calendar_0.1/progress_calendar.py", line 87, in initWidget
showDays(widget)
File "/home/knt/KDE-look/Superkaramba/progress_calendar_0.1/progress_calendar.py", line 142, in showDays
clndr=calendar.Calendar()
AttributeError: 'module' object has no attribute 'Calendar'

1) I would appreciate that (and probably any non-english user in the near future).

4) Well, as for me it works...

Report

C

triacontahedron

13 years ago

5) thanks for debug output
Problem is that you are using python 2.4 or earlier. Changes in pythons library from 2.4 to 2.5 are quite significant. Basically nowdays calendar is a class that has many additional functions that were used in the applet. I bet there would be many other errors even if I made this section 2.4 compatible. Considering the fact that all linux distributions will move to 2.5 eventually and amount of effort required to make theme work in 2.4 I dont think i will resolve this problem :( Check your distribution i bet it already has python 2.5 package so you just need to make it default interpreter.

Report

KNT

13 years ago

No problem for me to change the default symlink to python2.5 but the first time I run the theme I got:

knt@laktok:~/KDE-look/Superkaramba/progress_calendar_0.1$ superkaramba progress_calendar.theme
Loaded my progression calendar!
sys.path.insert(0, '/home/knt/KDE-look/Superkaramba/progress_calendar_0.1/')
Call to initWidget failed
Traceback (most recent call last):
File "/home/knt/KDE-look/Superkaramba/progress_calendar_0.1/progress_calendar.py", line 87, in initWidget
showDays(widget)
File "/home/knt/KDE-look/Superkaramba/progress_calendar_0.1/progress_calendar.py", line 142, in showDays
clndr=calendar.Calendar()
AttributeError: 'module' object has no attribute 'Calendar'
Call to widgetClicked failed
Traceback (most recent call last):
File "/home/knt/KDE-look/Superkaramba/progress_calendar_0.1/progress_calendar.py", line 190, in widgetClicked
clndr=calendar.Calendar()
AttributeError: 'module' object has no attribute 'Calendar'

And in the next runs the same as in the first post.
BTW: I'm using Debian

Report

C

triacontahedron

13 years ago

It still seems that the problem is python version. I am not sure how debian manages different copies of compiler but I suspect that even if you enabled python 2.5 you it might still use libraries from 2.4 version.

Looks like error happens in the part

import calendar
cldr = calendar.Calendar()

the above lines will work in 2.5 but wont in 2.4

Report

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
Stincjatclava
Apr 25 2013
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
0.1
updated Aug 15 2007
added Aug 14 2007
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0