Author: remi
Date: 2009-03-16 16:28:37 +0100 (Mon, 16 Mar 2009)
New Revision: 4095
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/branches/0.0.3-windows-compatible/executables/mplayer/Mplayer.py
Log:
* code cleaning
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/branches/0.0.3-windows-compatible/executables/mplayer/Mplayer.py
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/branches/0.0.3-windows-compatible/executables/mplayer/Mplayer.py
2009-03-16 15:25:57 UTC (rev 4094)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/branches/0.0.3-windows-compatible/executables/mplayer/Mplayer.py
2009-03-16 15:28:37 UTC (rev 4095)
@@ -35,8 +35,8 @@
"""
if os.name == 'nt':
from ctypes import windll
- winmm= windll.winmm
- wvcps= ' '*52
+ winmm = windll.winmm
+ wvcps = ' ' * 52
cardsCount = winmm.waveOutGetNumDevs()
for i in range(cardsCount):
try:
@@ -74,16 +74,14 @@
return
if self.__process != None:
if os.name == 'nt':
- handle = self.__process._handle
- else:
- pid = self.__process.pid
- if os.name == 'nt':
import win32api
try:
+ handle = self.__process._handle
win32api.TerminateProcess(int(handle), -1)
except:
pass
else:
+ pid = self.__process.pid
os.system("kill -9 " + str(pid))
self.__setRun(False)
self.__process = None
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn