×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    17

    Print out calendar entries

    Hi guys,
    i have some entries in default calendar db
    and i like to print them out as text, but...
    Code:
    cal = e32calendar.open()
    for i in cal:
        entry=cal[i]
        print('content:%s'%entry.content)
    works just fine. It prints all my calendar entries, but when i try this...
    Code:
    t = appuifw.Text()
    appuifw.app.body = t
    text=('content:%s'%entry.content)
    t.add(text)
    Only the first alphabetical entry printed .
    What goes wrong ???
    Thanks in advance, any help will highly appreciated.

  2. #2
    Super Contributor
    Join Date
    Feb 2008
    Location
    Belo Horizonte, Brazil
    Posts
    744

    Re: Print out calendar entries

    Hi,

    I guess you should try adding the text to your body from inside the loop:

    Code:
    cal = e32calendar.open()
    t = appuifw.Text()
    appuifw.app.body = t
    
    for i in cal:
        entry=cal[i]
        t.add('content:%s\n'%entry.content)

    Hope it helps,

    Rafael.

  3. #3
    Registered User
    Join Date
    Jun 2009
    Posts
    17

    Re: Print out calendar entries

    Quote Originally Posted by Rafael T. View Post
    Hi,

    I guess you should try adding the text to your body from inside the loop:

    Code:
    cal = e32calendar.open()
    t = appuifw.Text()
    appuifw.app.body = t
    
    for i in cal:
        entry=cal[i]
        t.add('content:%s\n'%entry.content)

    Hope it helps,

    Rafael.
    Thanks a lot Rafael.
    So simple but ...so clever !!!
    Thanks again.

Similar Threads

  1. Guitar Tuner in Python
    By cassioli in forum Symbian
    Replies: 44
    Last Post: 2009-11-30, 20:03
  2. How delete all calendar entries?
    By pavarang in forum Symbian
    Replies: 4
    Last Post: 2008-05-28, 12:31
  3. Sending an image over email
    By jeclarim in forum Symbian
    Replies: 3
    Last Post: 2006-12-15, 20:25
  4. Replies: 1
    Last Post: 2005-10-27, 22:52
  5. Problem in Deleting all the calendar entries?
    By symnewbie in forum Symbian
    Replies: 0
    Last Post: 2005-06-17, 14:19

Posting Permissions

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