×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    22

    Unhappy Lengthy Text Input!

    Hello! I want a way of entering lengthy text. The query is not able to handle lengthy texts. I have you the text UI in the body:

    n=appuifw.Text()
    appuifw.app.body=n


    it works good, but when i put it in a tab application it does not work. I can only type numbers. Please help me out. And if there is another way, do tell me.

    here is the code for the tab:

    import appuifw
    import e32
    from graphics import *
    import socket
    import key_codes


    def exit_key_handler():
    app_lock.signal()


    appuifw.app.title = u"Text"
    appuifw.app.menu = [(u"Initialize", exit_key_handler), (u"Sending option",
    ((u"SEND", exit_key_handler), (u"Send to many", exit_key_handler)))]



    n=appuifw.Text()
    appuifw.app.body=n


    def handle_tab(index):
    print u"Hi"


    app_lock = e32.Ao_lock()

    appuifw.app.set_tabs([u"Receive", u"Send"],handle_tab)


    appuifw.app.title = u'Text'
    appuifw.app.set_tabs([u"Receive", u"Send"],handle_tab)



    appuifw.app.exit_key_handler = exit_key_handler
    app_lock.wait()



    PLEASE HELP ME OUT!

    THANKS A LOT!!

  2. #2
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: Lengthy Text Input!

    Quote Originally Posted by darklord18 View Post
    Hello! I want a way of entering lengthy text. The query is not able to handle lengthy texts. I have you the text UI in the body:

    n=appuifw.Text()
    appuifw.app.body=n


    it works good, but when i put it in a tab application it does not work. I can only type numbers. Please help me out. And if there is another way, do tell me.

    here is the code for the tab:

    import appuifw
    import e32
    from graphics import *
    import socket
    import key_codes


    def exit_key_handler():
    app_lock.signal()


    appuifw.app.title = u"Text"
    appuifw.app.menu = [(u"Initialize", exit_key_handler), (u"Sending option",
    ((u"SEND", exit_key_handler), (u"Send to many", exit_key_handler)))]



    n=appuifw.Text()
    appuifw.app.body=n


    def handle_tab(index):
    print u"Hi"


    app_lock = e32.Ao_lock()

    appuifw.app.set_tabs([u"Receive", u"Send"],handle_tab)


    appuifw.app.title = u'Text'
    appuifw.app.set_tabs([u"Receive", u"Send"],handle_tab)



    appuifw.app.exit_key_handler = exit_key_handler
    app_lock.wait()



    PLEASE HELP ME OUT!

    THANKS A LOT!!

    I think you will have a better success by using some native Series 60 component for which you create C++ wrapper. Try to look what native S60 applications use for long texts. I bet there exists a component for it, besides writing SMS messages.

    -Mikko
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

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

    Re: Lengthy Text Input!

    Hi darklord18,

    If you need it only for prototyping script then you can use the raw input that python offers, BTW you could use the CODE tabs (#) to mantain the indentations in your code

    Best Regards,
    Croozeus
    Pankaj Nathani
    www.croozeus.com

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

    Re: Lengthy Text Input!

    hi darkload18
    i think its not possible in pys60 what you want to achieve. better try something in symbian c++.

Similar Threads

  1. javascript set focus to input text box ??
    By zaponjanx in forum Browsing and Mark-ups
    Replies: 5
    Last Post: 2008-03-12, 09:52
  2. Urgent! How to change text input language on runtime for EDWIN?
    By whitewinds in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-05-24, 10:37
  3. Replies: 2
    Last Post: 2006-01-31, 11:46
  4. Replies: 0
    Last Post: 2004-11-24, 18:49

Posting Permissions

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