[Tutor] Convert bmp to mpeg

2007-08-21 Thread Per Jr. Greisen
Hi,

I would like to make a method where I give a number of bmp-file as argument
and than create a mpeg format from these - is that possible with python and
which packages should I use?

Thanks in advance
-- 
Best regards
Per Jr. Greisen
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Replacing characters

2007-05-25 Thread Per Jr. Greisen

Hi,

I am replacing 4 characters with a number and I would like to make the
whitespace dynamic so
for fx. 1 it uses 3 whitespace and for 10 two and for 100 one etc. I am
using the replace() method.

Any help or advice appreciated

Thanks in advance
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Making table

2007-03-19 Thread Per Jr. Greisen

Hi,
I need to generate a table with different x,y,z values and write them to a
file:
10.171  -15.243 -2.558
9.837   -14.511 -1.923
-23.451 -13.870 51.507

I would like to write to the files as columns
10.171   -15.243   -2.558
  9.837   -14.511   -1.923
-23.451   -13.870  51.507
  0.233  0.4530.111

so the number are correctly aligned. Does anybody know a function that can
align the numbers.
Any advice or help appreciated. Thanks in advance.
--
Best regards
Per
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Rounding off

2007-03-18 Thread Per Jr. Greisen

Hi,

Is there an easy way - a module or method for which you can round off number
such as

2.1345 to 2.135

Any help or advice appreciated?

--
Best regards
Per Jr. Greisen
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


[Tutor] Rounding number

2007-03-18 Thread Per Jr. Greisen

Hi,

I use the method from math in order to round off the number:

import math

a = 1.3

b = round(a,3)

which equals gives
b=1.4

is it possible to have the rounding such that
b = 1.400

so it keeps in my case the correct digits?

Any help appreciate. Thanks in advance



--
Best regards
Per Jr. Greisen
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor