Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets An extended Calendar-applet via Python?
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] An extended Calendar-applet via Python?
Guest English 6 fabounet [Read]
02 October 2012 à 17:56

Guest, Tuesday 18 September 2012 à 18:13

Hi,

I've begun reading the dev-docs and it seems that the applet-api for Python is pretty limited. Is my impression correct that something like an extended Calendar-applet isn't possible via Python? The reason is that I think the Calendar-applet is pretty limited and I'd like to have a version where one can click dates (in the pop-up that shows one month) which then should make it able to enter events. Plus, syncing it with some online-account like Google Calendar would be a plus. Is something like that possible via Python?

fabounet, Wednesday 19 September 2012 à 17:44


Subscription date : 30 November 2007
Messages : 17118
about the applet, you can already do such things with the Clock applet (it has a calendar).
That being said, indeed a dialog built with the Python/any-other-langage API is quite limited, so you would probably want to build your own gtk window with pygtk.

matttbe, Wednesday 19 September 2012 à 17:58


Subscription date : 24 January 2009
Messages : 12573
and Clock already support ivs files I think
It can be interesting to add a feature to be connected with a Google Calendar account

Guest, Wednesday 19 September 2012 à 21:34

Thanks for the answers. However there are a few remarks I want to make:

1) I didn't even think of the clock widget as a possible candidate for that purpose. For me, the calendar widget would be the most logical choice for editing and viewing events.

2) While a window opened when clicking on a date via the clock applet, there weren't any buttons to add events. Adding an alarm by using the configuration window looks like a rather clumsy and unintuitive way, requiring far too many clicks. My idea is something like the calendar-view given by the calendar-applet, which might open another (gtk?) window that lets one manage events, adding, synchronizing with an online-service and such things.

So I guess I'll see how far I can get with the API and gtk in this regard.

fabounet, Wednesday 26 September 2012 à 17:32


Subscription date : 30 November 2007
Messages : 17118
1) well it's quite common to have a calendar with a clock applet, and also common to be able to add task in a calendar

2) indeed, you have to double-click on the day, and then right-click -> new task.
I'll see if it's possible to add a task more easily from the calendar dialog.

Guest, Tuesday 02 October 2012 à 17:20

So, I had a look at the Python API and, at least as far as I could see, something like the calender in the Clock-addon isn't possible via Python. There would have to be a way to select individual days (and other things) for which I couldn't find functions. Or did I miss something?

fabounet, Tuesday 02 October 2012 à 17:56


Subscription date : 30 November 2007
Messages : 17118
indeed, I don't think you can; so there are 2 solutions:
- use C
- build your own calendar dialog that would pop up/down on click on the applet

By the way, I've improved the clock's calendar, so that we can now right-click on a day to add a new task

Applets | Applets

Subjects Author Language Messages Last message
[Locked] An extended Calendar-applet via Python?
Guest English 6 fabounet [Read]
02 October 2012 à 17:56


Glx-Dock / Cairo-Dock List of forums Applets | Applets An extended Calendar-applet via Python? Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.