Dynamic dialog.select entries
#1
Hi, I am trying to build a dialog.select list from the contents of a text file where each line is an item you can select

I started off with a simple fialog.ok as below
Code:
f = open(messagefile)
        show = list()
        for line in iter(f):
            show.append(line)
        dialog.ok('Menu', *show)

which is fine but is limited to 3 lines, changing to a dialog.select causes errors

Code:
f = open(messagefile)
        show = list()
        for line in iter(f):
            show.append(line)
        dialog.select('Menu', [*show])

Error is "invalid syntax"

I have tried every combination but cannot get it to work, can anyone help?

Thank you
Reply
#2
dialog.select('Menu', show) you forgot that combination..
Reply

Logout Mark Read Team Forum Stats Members Help
Dynamic dialog.select entries0