View Issue Details

IDProjectCategoryView StatusLast Update
0007695ScribusScripterpublic2009-01-01 12:42
Reporterhovergo Assigned Tojghali  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformIntelOSLinuxOS VersionFedora 8
Product Version1.3.5svn 
Fixed in Version1.3.5svn 
Summary0007695: valueDialog not displaying caption properly
Description# valueDialog(caption, message [,defaultvalue]) -> string

caption does not display 'caption', instead it displays 'message'
Steps To ReproduceEvery time valueDialog is used in script.
TagsNo tags attached.
Patch

Activities

hovergo

2009-01-01 02:26

reporter   ~0020856

Not resolved.
I obtained (svn u) the 1.3.5svn 10am this morning. installed as directected, the problem remains.
I can send a low res screen shot if necessary.
one coding example from Greg Pittman follows:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

import scribus
colortext = ['The flower is red','The table is blue','The auto is yellow','The tree is green', 'The shirt is magenta']

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')

selectedtext = colortext[int(choice)]
# Note the need to convert to an integer since even a number in a valueDialog is returned as a string
result = scribus.messageBox('Here it is!',selectedtext)

Should display 'Enter your choice by number'.
Does not, instead displays: from '0 = through to is magenta' in the blue title bar.
Have I done something wrong
Should I have deleted the cMakeFiles.txt before issuing cmake etc.

jghali

2009-01-01 12:42

administrator   ~0020857

Works as expected. The first argument of valueDialog is the windows title, the second the message. Displays as expected 'Enter your choice by number' as windows title and '0 = The flower is red\n1...' as windows message

Issue History

Date Modified Username Field Change
2008-12-31 03:56 hovergo New Issue
2008-12-31 13:13 jghali Product Version 1.3.3.5cvs => 1.3.5svn
2008-12-31 13:13 jghali Summary valueDialog not working => valueDialog not displaying caption properly
2008-12-31 13:13 jghali Status new => resolved
2008-12-31 13:13 jghali Fixed in Version => 1.3.5svn
2008-12-31 13:13 jghali Resolution open => fixed
2008-12-31 13:13 jghali Assigned To => jghali
2008-12-31 13:57 cbradney Status resolved => closed
2009-01-01 02:26 hovergo Note Added: 0020856
2009-01-01 02:26 hovergo Status closed => feedback
2009-01-01 02:26 hovergo Resolution fixed => reopened
2009-01-01 12:42 jghali Note Added: 0020857
2009-01-01 12:42 jghali Status feedback => resolved
2009-01-01 12:42 jghali Resolution reopened => fixed
2009-01-01 12:42 jghali Status resolved => closed