Old newbie needs help.

2014-12-20 Thread John Culleton
This week I wrote my first Python program, a script callable from Scribus, a 
DTP program. It ran! Now I want to spread my wings a little. How do I call a C 
language executable subprogram from Python and pass information back and forth? 

I am of the old school, meaning that object oriented programming is only 
slightly 
less obscure to me than Sanscrit or Navaho. So be gentle.

Python 2.7.5 on Slackware 14.1


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


Put float number in message.

2015-01-03 Thread John Culleton
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