×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2004
    Posts
    295

    [snippet] Ao_timer without 2147 second limit

    Code:
    import e32
    
    class Ao_timer2:
        # timer without 2147 second interval limit
        MAX = 2147
        def __init__(self):
            self.timer = e32.Ao_timer()
            
        def after(self, interval, callback):
            if interval > self.MAX:
                self.timer.after(self.MAX, lambda : self.after(interval-self.MAX, callback))
            else:
                self.timer.after(interval, callback)
                
        def cancel(self):
            self.timer.cancel()
    
    def test1():
        def hello():
            print "1: hello mister"
            
        t = Ao_timer2()
        t.after(3, hello)
        e32.ao_sleep(5)

  2. #2
    Registered User
    Join Date
    Oct 2011
    Posts
    1

    Re: [snippet] Ao_timer without 2147 second limit

    Thank you so much!
    But how do you know the limit of Ao_timer is 2147 second. It doesn't in S60 Module Reference.

Similar Threads

  1. how to set text limit of CAknTextSettingItem
    By JackSu in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-02-13, 15:22
  2. mms image size limit
    By meghaarya in forum General Messaging
    Replies: 0
    Last Post: 2008-02-02, 07:18
  3. HTTP Response content length limit
    By jp4symbian in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2007-01-01, 14:22
  4. Series 40: Persistent Storage Limit per Midlet Suite?
    By pqp6 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-05-12, 05:22
  5. The 30 KB limit?
    By phubinet in forum Mobile Java General
    Replies: 1
    Last Post: 2002-11-16, 13:23

Posting Permissions

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