R
rantingrick
Hello folks,
Pygame --the best little 2d game engine in Pythoina-- is great for
little 2d one off games and such (or so i've heard). I really don't do
much 2d graphics but pygame has some other helpful modules so i
downloded it about a year or so ago although i had not used it until
today. I just wanted to be ready just incase the 2d bug bit me. So
recently I wanted to do some cdrom automation for one of my Tkinter
scripts and thought... Hey, i finally found a good use for that old
pygame module!
So with much anticipation i moseyed on over to my site-packages folder
and dusted off the old pygame module and docs and i was coding away
just happy as a clam. I had my initialization working well, my
ejections were a breeze, and i even had some boolean testing
functionality all wrapped up nicely. Boy was i on cloud nine! And just
as i was finishing up the interface class with a "close" method i
realized in horror... YOU CAN OPEN THE CD TRAY WITH PYGAME HOWEVER FOR
SOME CRUEL AND UNJUST REASON YOU CANNOT CLOSE IT! WTF?
Yes at this point i realized that without a method to close the cd
tray my little module was useless. Sure i could drop into my OS
functionality and close the cdtray by first setting up a device handle
and calling a few underlying Windows functions however i am convinced
that this basic functionality should be a part of any cdrom interface.
Why would someone create such an interface and leave out such an
important method? Surely this functionality must be available through
the SDL API? What gives pygame developers? What gives?
Pygame --the best little 2d game engine in Pythoina-- is great for
little 2d one off games and such (or so i've heard). I really don't do
much 2d graphics but pygame has some other helpful modules so i
downloded it about a year or so ago although i had not used it until
today. I just wanted to be ready just incase the 2d bug bit me. So
recently I wanted to do some cdrom automation for one of my Tkinter
scripts and thought... Hey, i finally found a good use for that old
pygame module!
So with much anticipation i moseyed on over to my site-packages folder
and dusted off the old pygame module and docs and i was coding away
just happy as a clam. I had my initialization working well, my
ejections were a breeze, and i even had some boolean testing
functionality all wrapped up nicely. Boy was i on cloud nine! And just
as i was finishing up the interface class with a "close" method i
realized in horror... YOU CAN OPEN THE CD TRAY WITH PYGAME HOWEVER FOR
SOME CRUEL AND UNJUST REASON YOU CANNOT CLOSE IT! WTF?
Yes at this point i realized that without a method to close the cd
tray my little module was useless. Sure i could drop into my OS
functionality and close the cdtray by first setting up a device handle
and calling a few underlying Windows functions however i am convinced
that this basic functionality should be a part of any cdrom interface.
Why would someone create such an interface and leave out such an
important method? Surely this functionality must be available through
the SDL API? What gives pygame developers? What gives?