You Are Here:

Community: Developer Discussion Boards

#1 Old [bug report] adding a combobox to Form dynamically causes crash - 2006-03-03, 08:57

Join Date: Aug 2004
Posts: 290
simo.salminen
Offline
Regular Contributor
Adding combobox dynamically causes interpreter to crash. Here is an example:

Code:
import appuifw

def add_combobox(form):
    # this insert causes crash
    form.insert(1, (u"Combo", "combo", ([u"1",
                                         u"2",], 0)))
    
def show_form():
    flds = [(u"Hello", "text", u"World"),
            ]
    
    f = appuifw.Form(flds, appuifw.FFormEditModeOnly |
                     appuifw.FFormDoubleSpaced)
    
    f.menu = [(u"Crash Boom Bang", lambda  : add_combobox(f))]
    f.execute()

def main():
    show_form()

if __name__ == "__main__":
    main()
Also, replacing a existing combobox with new one does not work; it will change the item title, but not the available selections.
Reply With Quote

#2 Old Re: [bug report] adding a combobox to Form dynamically causes crash - 2006-03-06, 09:30

Join Date: Sep 2003
Posts: 209
Location: Finland
otsov
Offline
Regular Contributor
Quote:
Originally Posted by simo.salminen
Adding combobox dynamically causes interpreter to crash.

[...]

Also, replacing a existing combobox with new one does not work; it will change the item title, but not the available selections.
Thanks for the detailed report and the snippet. Filed as #0274 currently (notice that the number will most probably change when the defect database goes live).

BTW you could also add the PyS60 version you used (although I suspect you use the latest version) and whether you can reproduce the bug in a device (preferably with the model of the device) or emulator. Anyway, I could reproduce this defect in my 6600.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Lines to a Form Kebab300 General Symbian C++ 3 2006-03-09 12:47
[bug report] Form view corrupted when using long text entry with combo simo.salminen Python 1 2006-03-06 09:41
How can I add a popup field to the form dynamically stelee Symbian User Interface 0 2005-09-05 11:19
Adding a listbox to a form 'pages' resource? advocatee Symbian User Interface 0 2003-07-08 16:13
Adding controls to a form dynamically jowin Symbian User Interface 0 2003-04-26 03:38

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia