Re: [Tutor] Translate this VB.NET code into Python for me?

2008-03-05 Thread Dick Moores
At 10:22 AM 3/5/2008, Kent Johnson wrote: >Alan Gauld wrote: > You could do a GUI example and use IronPython to show how > > it copes with GUI code. Since IP can access the same GUI > > library as VB.NET they should be very similar in code structure. > >Here is a blog post I came across recently

Re: [Tutor] Const on Python

2008-03-05 Thread bob gailer
Tiago Katcipis wrote: > Its a simple question but i have found some trouble to find a good > answer to it, maybe i just dont searched enough but it wont cost > anything to ask here, and it will not cost to much to answer :-). Well there is a cost (at least to me) to read all the extra words tha

Re: [Tutor] Const on Python

2008-03-05 Thread Tiago Katcipis
Thanks for the help John. I agree with you that the programmer is already a grow person and should know when he can modify a attribute :-). Instead when other people will be able to continue to develop on the code i writed the const would give confidence that someone would not mess with my cons

Re: [Tutor] Const on Python

2008-03-05 Thread John Fouhy
On 06/03/2008, Tiago Katcipis <[EMAIL PROTECTED]> wrote: > learning. Im used to develop on c++ and java and i wanted to know if > there is any way to create a final or const member, a member that after > assigned cant be reassigned. Thanks to anyone who tries to help me and > sorry to bother wi

Re: [Tutor] hello can you help me solve this problem

2008-03-05 Thread Alan Gauld
"Christopher Marlett" <[EMAIL PROTECTED]> wrote > Exercise 2.4.5.1. * Make a program scene.py creating a scene > with the graphics methods. You are likely to need to adjust the > positions of objects by trial and error until you get the positions > you want. Make sure you have graphics.py in the s

[Tutor] Const on Python

2008-03-05 Thread Tiago Katcipis
Its a simple question but i have found some trouble to find a good answer to it, maybe i just dont searched enough but it wont cost anything to ask here, and it will not cost to much to answer :-). I have started do develop on python and i really liked it, but im still learning. Im used to deve

Re: [Tutor] hello can you help me solve this problem

2008-03-05 Thread bob gailer
Christopher Marlett wrote: > This may be a very broad question but whatever help you could give me would > be great. > > Exercise 2.4.5.1. * Make a program scene.py creating a scene with the > graphics methods. You are likely to need to adjust the positions of objects > by trial and error until

[Tutor] hello can you help me solve this problem

2008-03-05 Thread Christopher Marlett
This may be a very broad question but whatever help you could give me would be great. Exercise 2.4.5.1. * Make a program scene.py creating a scene with the graphics methods. You are likely to need to adjust the positions of objects by trial and error until you get the positions you want. Make s

Re: [Tutor] Video file metadata? (MP4/WMV)

2008-03-05 Thread Terry Carroll
On Tue, 4 Mar 2008, Allen Fowler wrote: > I can't seem to find a simple description of the MP4 sepc... it might be > because there is not one. :) Does this help? http://www.digitalpreservation.gov/formats/fdd/fdd000155.shtml I think, though, that using Python to drive an already-written utility

Re: [Tutor] Translate this VB.NET code into Python for me?

2008-03-05 Thread Kent Johnson
Alan Gauld wrote: You could do a GUI example and use IronPython to show how > it copes with GUI code. Since IP can access the same GUI > library as VB.NET they should be very similar in code structure. Here is a blog post I came across recently that shows a number of ways to construct a GUI in

Re: [Tutor] Video file metadata? (MP4/WMV)

2008-03-05 Thread Kent Johnson
Allen Fowler wrote: > what is the correct way to parse binary files in Python? http://docs.python.org/lib/module-struct.html and perhaps http://construct.wikispaces.com/ Kent ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listin

Re: [Tutor] Video file metadata? (MP4/WMV)

2008-03-05 Thread Ian Ozsvald
Hi Allen. I don't know of a Python module but I believe that ffmpeg will do what you want. Inside ShowMeDo I start it using os.spawnv and I use Python to do some processing on ffmpeg's output. We use it to transcode incoming AVI/MOVs to .FLV files. This would be more involved than just using

Re: [Tutor] Video file metadata? (MP4/WMV)

2008-03-05 Thread Alan Gauld
"Allen Fowler" <[EMAIL PROTECTED]> wrote > That being said, what is the correct way to parse binary files in > Python? The safest way is to open in binary mode and use read() to get the data then use the struct module to decode the data into python objects. There is a very basic intro to this