[scribus] Problem with valueDialog()

Owen rcook at pcug.org.au
Fri Jan 2 00:14:31 CET 2009


> 1.3.5 latest svn installed 0930 2nd Jan09
>
> Have a problem where:
> valueDialog(caption, message [,defaultvalue]) -> string
>
> Caption and message display the same string.
> pyscript:
>
> choice = scribus.valueDialog('a','b','0')
> selectedtext = colortext[int(choice)]
> result = scribus.messageBox('Here it is!',selectedtext)


I think you should have followed Greg's example a bit better, you need
to make the choices

eg;

choice = scribus.valueDialog('Enter your choice by number','0 = The
flower is red\n1 = The table is blue\n2 = The auto is yellow\n3 = The
tree is green\n4 = The shirt is magenta','0')


Owen





More information about the scribus mailing list