Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User mail2karthi07's Avatar
    Join Date
    Feb 2010
    Location
    India
    Posts
    281
    how to remove the key capture programatically ?


    capturer.remove_key(keyid);

    how to get the keyid ?

    waiting for your reply.....

  2. #2
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    The KeyCapturer class doesn't have a remove_key method. Where did you find that?

    Also, please give a little more information about your requirement. Do you want to stop the capturer altogether, or just stop detecting only certain keys?

  3. #3
    Registered User mail2karthi07's Avatar
    Join Date
    Feb 2010
    Location
    India
    Posts
    281
    Quote Originally Posted by bogdan.galiceanu View Post
    The KeyCapturer class doesn't have a remove_key method. Where did you find that?

    Also, please give a little more information about your requirement. Do you want to stop the capturer altogether, or just stop detecting only certain keys?
    From the pys60-2.0.0_src source code i found the method. my requirement is initially i want to capture some keys and meanwhile i want to cancel some captured keys...
    Thanks for your quick reply...

  4. #4
    Nokia Developer Moderator bogdan.galiceanu's Avatar
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471
    That's something else. The class in the keycapture module that is used for programming doesn't have that method (apparently it's a method that belongs to an internal, auxiliary class).

    Anyway, you can achieve what you want like this:
    Code:
    a = capturer.keys
    a.remove(EKey5)  #For example, you remove the 5 key from the list
    capturer.keys = a

  5. #5
    Registered User mail2karthi07's Avatar
    Join Date
    Feb 2010
    Location
    India
    Posts
    281
    Quote Originally Posted by bogdan.galiceanu View Post
    That's something else. The class in the keycapture module that is used for programming doesn't have that method (apparently it's a method that belongs to an internal, auxiliary class).

    Anyway, you can achieve what you want like this:
    Code:
    a = capturer.keys
    a.remove(EKey5)  #For example, you remove the 5 key from the list
    capturer.keys = a
    Thank you very much ...its working now...

  6. #6
    Nokia Developer Champion james1980's Avatar
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    916
    Quote Originally Posted by mail2karthi07 View Post
    how to remove the key capture programatically ?


    capturer.remove_key(keyid);

    how to get the keyid ?

    waiting for your reply.....
    Check this page to get all key codes.

    http://pys60.garage.maemo.org/doc/s60/node25.html
    Jajal Mehul

  7. #7
    Registered User mail2karthi07's Avatar
    Join Date
    Feb 2010
    Location
    India
    Posts
    281
    I got the PyS60 Source from https://garage.maemo.org/frs/?group_id=854 ..I am using PyS60 3rd Ed FP2 SDK...I referred the remove_key(keyid) method from keycapture pthon module extension...
    whether i am using correct version of PyS60 source code for PyS60 3rd FP2?

  8. #8
    Registered User mail2karthi07's Avatar
    Join Date
    Feb 2010
    Location
    India
    Posts
    281
    Quote Originally Posted by james1980 View Post
    Check this page to get all key codes.

    http://pys60.garage.maemo.org/doc/s60/node25.html
    Thank you james...i got the key code

Similar Threads

  1. KeyCapture Events
    By nair.shanker in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-06-04, 07:31
  2. [help]problem about keycapture module
    By Whirlwind in forum Python
    Replies: 1
    Last Post: 2008-09-08, 02:37
  3. keycapture icode always zero
    By letronje in forum Symbian C++
    Replies: 1
    Last Post: 2007-03-12, 14:28
  4. keycapture question
    By ejager in forum Python
    Replies: 1
    Last Post: 2006-11-21, 16:56
  5. RequestOffEvents + KeyCapture
    By aurelien.durand in forum Symbian C++
    Replies: 2
    Last Post: 2006-02-01, 07:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved