Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Gerdus van Zyl
Try pyglet [pyglet.org]. It wraps avbin for mp3,ogg reading and plays using directsound, alsa, etc. Not sure if it could be made easy_installable. ~Gerdus On Tue, Aug 12, 2008 at 8:14 AM, Michael Gundlach <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way to play an MP3 from Python 2.5 in Window

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Sidnei da Silva
On Tue, Aug 12, 2008 at 4:26 AM, Gerdus van Zyl <[EMAIL PROTECTED]> wrote: > Try pyglet [pyglet.org]. It wraps avbin for mp3,ogg reading and plays > using directsound, alsa, etc. Not sure if it could be made > easy_installable. Maybe PyGame? Same issue re: being easy_install-able though. -- Sidn

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Vernon Cole
As always, remember that mp3 is proprietary, and the owner has shown willingness to be nasty about licensing it. Therefore, anything that is "easy to install" is possibly illegal and/or will open you to a lawsuit. If you are doing new work, better to use ogg. On Tue, Aug 12, 2008 at 5:53 AM, Sidne

Re: [python-win32] Create dll from python source code

2008-08-12 Thread _ _
I try use pyrex to create dll from py source code. Works!, but I dont know how include win32 extension modules in my dll Can you help me please?... I need to include PyQt too... Thanks a lot!! 2008/8/5 Mark Hammond <[EMAIL PROTECTED]> > I'm not aware of a tool that will turn a python script

[python-win32] GetModuleFileName requires Process or Thread handle?

2008-08-12 Thread Walter Decker
Hello, Can someone help me diagnose why the following fails to retrieve the 'exe' name KillByName? Some code copied from unnamed webpage: import sysimport osimport timeimport win32apiimport win32process def StartAProcess(RunCmd): StartupInfo = win32process.STARTUPINFO() np = win32proces

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Brian Parma
If you don't need to control the playback with your program but just launch it (in WMP), try os.startfile instead of os.system. On Tue, Aug 12, 2008 at 7:45 AM, Vernon Cole <[EMAIL PROTECTED]> wrote: > As always, remember that mp3 is proprietary, and the owner has shown > willingness to be nasty

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Michael Gundlach
Re: PyGame: I forgot that one in my list. Someone else tried it and said sound quality for MP3 playback was terrible (didn't verify myself though). Re: pyglet: thanks for the suggestion. Re: licensing: good point, and so I think that the best solution is... os.startfile('x.mp3'). Thank you, Br

Re: [python-win32] GetModuleFileName requires Process or Thread handle?

2008-08-12 Thread Tim Golden
Walter Decker wrote: Can someone help me diagnose why the following fails to retrieve the 'exe' name KillByName? Do you mind if I sidestep your question altogether and point out that this is one of those things which WMI makes a fair bit easier? Obviously, if what you want is an insight into Wi

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Michel Claveau
Hi! You can use MCI (include inWindows). Example: # -*- coding: utf-8 -*- import time from ctypes import windll, c_buffer class mci: def __init__(self): self.w32mci = windll.winmm.mciSendStringA self.w32mcierror = windll.winmm.mciGetErrorStringA def send(self,commande):

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Michael Gundlach
Michel, This is perfect. Works like a charm, and I assume it's not due to my installing anything already besides Python itself. Thank you very much! I'll go put this into a simple "mp3play" module, and put a recipe in the Cookbook, to up the chance that people find this. Perhaps the module wil

Re: [python-win32] Play MP3s from Windows, Just Works

2008-08-12 Thread Michel Claveau
Hi! This is perfect. Works like a charm ... Thank you very much! Thanks for return. For info, MCI can, also, record from microphone, save file, give infos on sound files, play mp3, wma or mid, etc. It's an old techno of Windows. But... it's only on Windows. @-salutations -- Michel Claveau

Re: [python-win32] Create dll from python source code

2008-08-12 Thread Mark Hammond
Note there is a py2exe specific mailing list at https://lists.sourceforge.net/lists/listinfo/py2exe-users - but when asking questions like this, be sure to include the smallest sample that demonstrates your problem in total - ie, the .py file you are trying to freeze, the setup.py you are using to