|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
How to play From CD Using tkSnack
Hi all I was just wondering how to play music from a cd using tkSnack would it just be mysound.read(My CDROM Path) That would'nt work on all systems so any help to do this across all systems would be appreciated
Cheers |
|
#2
|
||||
|
||||
|
Mmmm, there is never going to be a totaly cross platform way to play sounds with Tk since TK doesnt work on some platforms, mac for one!
Possibly check out pyGame, i know you can use it to eject a CD and sound is kinda important in a game so ![]() http://www.pygame.org/ Mark. |
|
#3
|
|||
|
|||
|
Thanks for the quick reply
Hey Thanks I checked out PyGame
It is just a matter of figuring out how to use it So there is no way to do that in tkSnack What about if it was just for windows platforms is there an absolute path to a CDROM drive in windows Thanks Cheers |
|
#4
|
||||
|
||||
|
We'll i'm not Tk buff but i do know that Tk wont work on mac so. but if you where just on windows the it should be fine... i surpose the abs path to a CD drive could be something as simple as D:\
On windows you can play with sounds using the winsound module http://www.python.org/doc/2.3.2/lib...e-winsound.html Mark. |
|
#5
|
|||
|
|||
|
Hey Cool
Yeah I guess TkSnack would'nt be the best choice for a project that was actually going to be distributed
I am basically just messing around so I can learn how to program TkSnack was the first thing that popped up on the internet Maybe I will just leave my music player with Open Play Stop buttons Thanks for all your help Cheers Andrew |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > How to play From CD Using tkSnack |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|