| Reply | « Previous Thread | Next Thread » |
|
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()
|
| simo.salminen |
| View Public Profile |
| Find all posts by simo.salminen |
|
Quote:
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 | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| 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 |