×

Discussion Board

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

    Thumbs up [announce] xprofile 1.10 3rd unsigned : major update !

    hello ,

    There's a new update with more functions and much more interesting that basic change !

    Run this code example for understand what I mean
    Code:
    import xprofile
    import appuifw
    import e32
    
    appuifw.app.title = u'Xprofile 1.10 testing'
    id,ap,ap_long=xprofile.get_ap()
    
    def set_menu():
        global menu_ap, menu_exit,menu_list_profiles,menu_set_ap,menu_set_profile_name,ap
        id,ap,ap_long=xprofile.get_ap()
        menu_ap =(u'AP (%s)'%ap, get_ap)
        menu_list_profiles =(u'list profiles',get_list_ap )
        menu_set_ap =(u'set ap',set_ap )
        menu_set_profile_name =(u'set profile name',set_profile_name )
    
        appuifw.app.menu = [menu_list_profiles,menu_ap,menu_set_ap,menu_set_profile_name,menu_exit]
    
    def get_ap():
        global ap
        id_profile,shortname_ap,name_ap = xprofile.get_ap()
        ap=shortname_ap
        appuifw.note(u'id = %d\nshortname = %s\nname = %s'%(id_profile,shortname_ap,name_ap)) 
        set_menu()
    
    def get_list_ap():
        global ap
        l=xprofile.profiles_list()
        list=[u'%d : %s '%(i[0],i[1]) for i in l]
        i = appuifw.selection_list(list)
        set_menu()
    
    def set_ap():
        global ap
        l=xprofile.profiles_list()
        list=[i[1] for i in l]
        indexes=[i[0] for i in l]
        i = appuifw.selection_list(list)
        if i is not None:
            i_p=indexes[i]
            xprofile.set_ap(i_p)
            set_menu()
    
    
    def set_profile_name():
        global ap
        l=xprofile.profiles_list()
        list=[i[1] for i in l]
        indexes=[i[0] for i in l]
        i = appuifw.selection_list(list)
        if i is not None:
            inp = appuifw.query(u'new name : ','text',list[i])
            if inp is not None:
              i_p=indexes[i]
              xprofile.set_profile_name(i_p,inp)
        set_menu()
    
    def handle_exit():
        global running
        running = 0
    
    menu_exit = (u'Exit', handle_exit)
    set_menu()
     
    running = 1
    def quit():
        global running
        running = 0
    appuifw.app.exit_key_handler= quit
    
    while running:
        e32.ao_sleep(0.1)
    YES now you can list profiles and CHANGE any profile name (standard or user profile )

    With N93 you can WRITE a little word on secondary screen (doesn't work with general profile) ! I succeed in making scroll an sentence on this screen
    Yes it's tricky but I don't know any way writing at this place even with C++

    links :
    xprofile 1.10 unsigned 3rd deprecated
    xprofile 1.1.1 opensigned 3rd

    Cyke64
    Last edited by cyke64; 2008-08-19 at 22:29. Reason: xprofile 1.1.1 bug fixed !
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

  2. #2
    Super Contributor
    Join Date
    May 2006
    Location
    Oulu, Finland
    Posts
    622

    Re: [announce] xprofile 1.10 3rd unsigned : major update !

    Where is the source??

    Good work cyke64, bravo!

    LFD
    Devices:
    Nokia E61 3rd Edition - pys60 1.4.0

    Tips and modules:
    http://www.lfdm.net/thesis

  3. #3
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    80

    Re: [announce] xprofile 1.10 3rd unsigned : major update !

    Great upgrade!! but it dies when I tried to change the ap-name .. Python quit and escaped.. no traceback

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

    Re: [announce] xprofile 1.10 3rd unsigned : major update !

    Quote Originally Posted by lfd View Post
    Where is the source??

    Good work cyke64, bravo!

    LFD
    Perhaps HERE
    pys60 1.4.5 and 2.0.0, pygame, PyS60 CE on E90 and 5800 !

    Find my pys60 extension modules on cyke64.googlepages.com

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

    Thumbs up Re: [announce] xprofile 1.10 3rd unsigned : major update !

    Hello ,

    For initiating this new era (more developers creating new extensions to our prefered mobile language) begun by this very interesting PyS60 talks II (sorry I could not join you
    I release a very awaited bug fix to the xprofile module
    Thanks to Oxydative for the fix !
    Now no more error if you call many time the xprofile.set_ap function

    links : sixty project on google code
    xprofile 1.1.1 opensigned for 3rd

    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

  6. #6
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,796

    Re: [announce] xprofile 1.10 3rd unsigned : major update !

    Quote Originally Posted by cyke64 View Post
    Hello ,

    For initiating this new era (more developers creating new extensions to our prefered mobile language) begun by this very interesting PyS60 talks II (sorry I could not join you
    Many people expected you, But hopefully they can meet you at PyS60 Talks #3 !

    Quote Originally Posted by cyke64 View Post
    I release a very awaited bug fix to the xprofile module
    Thanks to Oxydative for the fix !
    Now no more error if you call many time the xprofile.set_ap function

    links : sixty project on google code
    xprofile 1.1.1 opensigned for 3rd

    Cyke64
    Thanks for the update !

    Hope to see many more new extensions in time to come.

    Happy PyS60ing,
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  7. #7
    Registered User
    Join Date
    Sep 2006
    Location
    Sarajevo, Bosnia and Herzegovina
    Posts
    166

    Re: [announce] xprofile 1.10 3rd unsigned : major update !

    really bravo cyke, ya r da man
    btw would you mind if i add you to my gtalk? if certainly you do use gtalk.
    i would like to exchange few words wht u

    Regardz

  8. #8
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: [announce] xprofile 1.10 3rd unsigned : major update !

    hi cyke
    great update man.

Similar Threads

  1. Replies: 8
    Last Post: 2009-07-28, 03:38
  2. [announce] GsmPs 1.1 unsigned for 3rd
    By cyke64 in forum Symbian
    Replies: 0
    Last Post: 2007-08-22, 14:01
  3. Replies: 3
    Last Post: 2007-03-16, 18:39
  4. [announce] pathinfo module for 3rd
    By cyke64 in forum Symbian
    Replies: 0
    Last Post: 2006-12-23, 18:34
  5. C-code..unable to make sis
    By Symbian_Neil in forum Symbian
    Replies: 9
    Last Post: 2006-12-02, 07:55

Posting Permissions

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