Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Feb 2010

    Text input box/widget for long texts

    Hello everyone

    I am still a newbee in Python. I would like to write an application for sending MMS. Of course on my 6220c there is such an application, but I would like to have a bit different one. What I want to achieve is capability of sending very long sms-s, so I tried to send the text over the MMS using
    It works fine, but I still have no possibility to enter longer texts - when I try to use
    text = appuifw.query(u"Type message:", "text")
    I can input only about 80 characters and I want up to 1000. I would like to use appuifw.Text(), but I don't know how to do this. Can anyone help?

    Best regards

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Deva, Romania

    Re: Text input box/widget for long texts


    Here is an example of how to use appuifw.Text:

    All you have to do is modify it by adding the ability to retrieve the text that is entered. Something like this:
    import appuifw, e32, messaging
    app_lock = e32.Ao_lock()
    #Define the exit function 
    def quit():
    appuifw.app.exit_key_handler = quit
    #Create an instance of Text and set it as the application's body
    t = appuifw.Text()
    appuifw.app.body = t
    def send():
       text_to_send = t.get()  #This retrieves the text that was entered
       messaging.mms_send(number, text_to_send, attachment)
    appuifw.app.menu = [(u"Send message", send)]
    #Wait for the user to request the exit
    This way the option to send the message is in the application's menu.

  3. #3
    Registered User
    Join Date
    Feb 2010

    Re: Text input box/widget for long texts

    Thank you very much - it works. Now i wonder if there is any possibility to change keyboard mapping (for example # or <joystick down> to <enter> - CR/LF or something like that

    THX again

  4. #4
    Registered User
    Join Date
    Feb 2010

    Re: Text input box/widget for long texts

    There is another problem - in code example:
    messaging.mms_send("number", u"message", attachment)
    (according to http://wiki.forum.nokia.com/index.php/How_to_send_MMS) the second argument is a message, but I found that it is a subject of the message instead of the message itself. What is the method of putting the text into MMS body? Can I use a text file (txt, html or anything else) as an attachment to achieve what I want? What is the method of packing different attachments into one MMS (multipage for example)?

    Greetings again

Similar Threads

  1. Input text behavior inconsistency on 5800/N97
    By ranco in forum [Archived] Flash Lite on Nokia Devices
    Replies: 3
    Last Post: 2010-03-05, 19:01
  2. Can't switch numeric input to text input in RichTextEditor
    By mobilepig in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-01-03, 05:14
  3. Replies: 4
    Last Post: 2006-02-19, 17:32
  4. Replies: 2
    Last Post: 2006-01-31, 11:46
  5. 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