×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    20

    How does calendar work ? Can we make new calendar?

    Hi,
    I have read things given about the calendar on the wiki and other such sites. Like this one
    http://wiki.forum.nokia.com/index.ph...o_use_calendar and this one http://pys60.garage.maemo.org/doc/s6...2calendar.html
    But i just dont get how the calendar works. They all show the codes for adding the events, but how does it actually show the calendar with the grid, dates n all on the screen ?
    Can we add more functionalities to it ?
    And also I want to make an app with a different calendar with different functionalities. Any help ???
    TIA
    Chirag Narula

  2. #2
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: How does calendar work ? Can we make new calendar?

    You can use calendar in your application by including calendar module in your program.

    Code:
    import calendar
    And also you can not create your own different calendar, you have to use default one,

    Obviously you can add calendar entry and make events by programing.

    Best regards,

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    20

    Re: How does calendar work ? Can we make new calendar?

    Thanks
    But how does it appear on the display? The grid and all ?
    And i meant can we make new calendar entry. Actually I wanna make an app which could mark dates. Like if I open up that app, I could see the encircled or marked dates in the grid of the calendar.. How would that work ?

  4. #4
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: How does calendar work ? Can we make new calendar?

    Quote Originally Posted by chiragnarula View Post
    Thanks
    But how does it appear on the display? The grid and all ?
    And i meant can we make new calendar entry. Actually I wanna make an app which could mark dates. Like if I open up that app, I could see the encircled or marked dates in the grid of the calendar.. How would that work ?
    Using this you can make the calendar entry : How to use calendar

    Best regards,

  5. #5
    Registered User
    Join Date
    May 2010
    Posts
    20

    Re: How does calendar work ? Can we make new calendar?

    Yeah seen that.. Code is not running
    cal = calendar.open()
    It doesnt work.. Should I use cal = e32calendar.open()

  6. #6
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: How does calendar work ? Can we make new calendar?

    It should work because the code in the article is tested.(If you have imported calendar module).

    However you can try for extended calendar module. as you told.

    Best regards,

  7. #7
    Registered User
    Join Date
    May 2010
    Posts
    20

    Re: How does calendar work ? Can we make new calendar?

    It should work because the code in the article is tested.
    Yes I imported the calendar module and still it didnt work.

    I changed it to e32calendar


    The error i get is- name 'mktime' is not defined


    If I change the mktime to time.mktime , then i get
    Index Error. i.e. is list index out of range in
    first_km = cal.find_instances(jan01, now, u'km')[0]

    Thanx,
    Chirag Narula

  8. #8
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: How does calendar work ? Can we make new calendar?

    The code in the article is tested, why it is no working is quite interesting......!!!!!!!!

    Ok,,,use time and datetime module in your program.

    See here : http://docs.python.org/release/2.5.2...-calendar.html
    http://pys60.garage.maemo.org/doc/s6...2calendar.html

    best regards,

  9. #9
    Registered User
    Join Date
    May 2010
    Posts
    20

    Re: How does calendar work ? Can we make new calendar?

    Hi,
    Sorry for a late reply but I had my exams
    Yes i have already read those pages and the script is still showing the same errors.

    Can we make this calendar on canvas interactive? By adding more graphics functionalities? http://wiki.forum.nokia.com/index.ph..._Python_Canvas

Similar Threads

  1. CS001291 - Modifying calendar entries in Flash Lite , Service.Calendar???
    By nguyenthuyan in forum [Archived] Flash Lite on Nokia Devices
    Replies: 9
    Last Post: 2009-12-23, 07:17
  2. E90 - how to make calendar like in E71?
    By Papla72 in forum General Development Questions
    Replies: 1
    Last Post: 2008-11-17, 19:07
  3. How to make the calendar
    By de_fong in forum Symbian
    Replies: 18
    Last Post: 2008-03-22, 16:11
  4. How to make Calendar in series 60
    By sfsea in forum Symbian User Interface
    Replies: 2
    Last Post: 2004-10-13, 14:27
  5. 9210 calendar compatible with Outlook calendar ??
    By andre456 in forum Symbian User Interface
    Replies: 0
    Last Post: 2002-09-25, 19:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×