×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26
  1. #16
    Regular Contributor
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81

    Re: [announce] uitricks module

    LFD says:
    So this module is unfortunately limited and won't work with dialogs.
    ... yet cyke64 provides form (which is a dialog) and dialog solutions in the first post and the readme (in sources)
    I can't change form menus.
    If this solutions really work with forms, can someone provide full working example please?
    whatever happens happens

  2. #17
    Regular Contributor
    Join Date
    May 2008
    Posts
    86

    Re: [announce] uitricks module

    Like a lot of other people I'm trying to change my form softkeys label.
    I've installed uitricks and it works in the emulator in basic usage and I could successfully change exitkeyhandler with
    Code:
    from key_tricks import * 
    import uitricks
    
    # same behavior than uikludges ! 
    uitricks.set_text('Out',EAknSoftKeyExit)
    I then tried to change label in my form created as suggested here but there was no way to get it works. Wherever I put
    Code:
    # 'Back' becomes 'Done' ...
    uitricks.set_text('Done',EAknSoftKeyBack)
    # return to default ...
    uitricks.set_text('Done',EAknSoftKeyBack)
    # 'Options' left soft key display become 'Python' !
    uitricks.set_text('Python',EAknSoftKeyOptions)
    I get EAknSoftKeyBack is not defined.
    What am I missing?

  3. #18
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: [announce] uitricks module

    Since you used EAknSoftKeyExit before and it worked, and I suppose you're trying to change the same key's label (the right softkey), I would say that you have to use EAknSoftKeyExit instead of EAknSoftKeyBack, which apparently isn't defined. Though I'm not really sure since Cyke64 gave the example that way...
    Last edited by bogdan.galiceanu; 2008-08-06 at 10:44.

  4. #19
    Regular Contributor
    Join Date
    May 2008
    Posts
    86

    Re: [announce] uitricks module

    I bypassed the problem of "not defined" inserting in code the softkey value:
    Code:
    uitricks.set_text(u'Out',3009)
    still works, but with 3001 (EAknSoftkeyBack) I get KErrNotFound.
    I guess it's the same problem displayed in previous posts.
    Does anyone get something new about it?

  5. #20
    Registered User
    Join Date
    Apr 2008
    Posts
    4

    Re: [announce] uitricks module

    To change the labels on the soft keys in a form do it in a separate thread with an e32.Ao_timer object:

    Code:
    	def activate(self):
    		self.form = appuifw.Form(self.fields, appuifw.FFormEditModeOnly)
    		...
    		timer = e32.Ao_timer()
    		timer.after(0.05, self.changeSoftkeys)
    		self.form.execute()
    	
    	def changeSoftkeys(self):
    		uitricks.set_text(u'Poo',EAknSoftkeyOptions)
    		uitricks.set_text(u'Pee',EAknSoftkeyBack)
    This gives the form time (0.05 seconds here) to show up so that the soft keys will exist when you try to change them.

  6. #21
    Registered User
    Join Date
    Apr 2008
    Posts
    4

    Re: [announce] uitricks module

    Is there a way to do this? Change the handler for a softkey? this example only changes the label...

    Quote Originally Posted by cyke64 View Post
    Problem :
    is there a way to make the LeftKey (and the menu) NOT show a menu make it act like the right one? ie when you simply press it you can assign a handler? -> some problems don't need 'Options' but a Back and Forward

    Solution :

    Code:
    from key_tricks import * 
    import uitricks
    # 'Options' lefsoftkey label becomes 'Forward' ...
    uitricks.set_text('Forward',EAknSoftKeyOptions)
    # 'Exit' becomes 'Back' ...
    uitricks.set_text('Back',EAknSoftKeyExit)

  7. #22
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: [announce] uitricks module

    You could try using keycapture. You could wait for the key to be pressed and then trigger whatever action you want. Here is an example which you can adapt to your needs, if you feel this can be a solution.

  8. #23
    Registered User
    Join Date
    Feb 2005
    Location
    Belgium (Europe)
    Posts
    1,352

    Re: [announce] uitricks module

    Hi ,

    Just to say I have published uitricks with a valid signature until year 2038

    Thanks to pajamabama for pointing me the expired file

    BR
    Cyke64
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  9. #24
    Registered User
    Join Date
    Oct 2008
    Posts
    29

    Re: [announce] uitricks module

    Quote Originally Posted by cyke64 View Post
    Hello Jan ,

    It seems that that the uitricks unsigned version was missing :
    So I put it here
    Now sign it and enjoy it !


    Cyke64

    I installed "uitricks V1.02 for 3rd edition (NEW !)" from http://cyke64.googlepages.com/. To determine whether these installed correctly, I separately tested the following two lines in the Nokia e71 (3rd edition) interpreter:

    from key_tricks import *
    import uitricks

    Executing "import uitricks" gives the following error:

    Error: _uitricks = imp.load_dynamic ('_uitricks','c:\\sys\\bin\\_uitricks.pyd') SymbianError: [Errno -46] KerrPermissionDenied

    Does anyone have insight into how I can fix the error?

    Thanks in advance!

  10. #25
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: [announce] uitricks module

    Quote Originally Posted by mango7 View Post
    I installed "uitricks V1.02 for 3rd edition (NEW !)" from http://cyke64.googlepages.com/. To determine whether these installed correctly, I separately tested the following two lines in the Nokia e71 (3rd edition) interpreter:

    from key_tricks import *
    import uitricks

    Executing "import uitricks" gives the following error:

    Error: _uitricks = imp.load_dynamic ('_uitricks','c:\\sys\\bin\\_uitricks.pyd') SymbianError: [Errno -46] KerrPermissionDenied

    Does anyone have insight into how I can fix the error?

    Thanks in advance!
    Yep, same problem on my N95. So instead, download uitricks V1.02 for 3rd edition unsigned, go to https://www.symbiansigned.com/app/pa...ignedOnline.do and sign it and then it will work.

  11. #26
    Registered User
    Join Date
    Oct 2008
    Posts
    29

    Re: [announce] uitricks module

    That worked - thanks so much!

Similar Threads

  1. [announce] sysagent module
    By cyke64 in forum Symbian
    Replies: 7
    Last Post: 2009-01-28, 12:52
  2. [announce] Call status and key press module
    By agrauballe in forum Symbian
    Replies: 21
    Last Post: 2007-09-19, 01:45
  3. Replies: 3
    Last Post: 2006-02-02, 10:12
  4. SMS I/O Control Application via Evaluation Module
    By alokghosh in forum Nokia M2M
    Replies: 2
    Last Post: 2003-06-18, 17:05
  5. GPS Module LAM-1
    By ZeZinh0 in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 09:44

Posting Permissions

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