[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-list
Subject:    Put float number in message.
From:       John Culleton <john () wexfordpress ! com>
Date:       2015-01-03 19:23:27
Message-ID: 4e62c96c-aa5f-43fd-ba67-c147c5ef0b96 () googlegroups ! com
[Download RAW message or body]

Here is my last line in a simple program that is a scribus script.
end = scribus.messageBox('Book Spine Width', 'dummy', ICON_WARNING, BUTTON_OK)

This works. Now I want to put a float number called S instead of 'dummy'.
If I just put S in the command I get an error. If I convert S to a string with
SS = str(S)
first and then 
and substitute SS for 'dummy' I get what appears to be the ASCII numbers representing \
the characters, not the characters I want. 

I am a total newbie with Python. Anyone have a suggestion? Can I use a print command \
instead?

John Culleton 
-- 
https://mail.python.org/mailman/listinfo/python-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic