Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def eject():
	cd_open()
	try:
		ioctl(cd.cd, CDROMSTOP)
		# Always unlock door before eject, in case something else locked it
		ioctl(cd.cd, CDROM_LOCKDOOR, 0)
	except:
		# ioctl(cd.cd, CDROMRESET)
		ioctl(cd.cd, CDROMSTOP)
		# Always unlock door before eject, in case something else locked it
		ioctl(cd.cd, CDROM_LOCKDOOR, 0)
	try:
		ioctl(cd.cd, CDROMEJECT_SW, 0)
		ioctl(cd.cd, CDROMEJECT)
	except:
		ioctl(cd.cd, CDROMEJECT_SW, 0)
		ioctl(cd.cd, CDROMEJECT)
        


src/a/c/AccordionMega-HEAD/rtmidi/pkaudio/pk/stereo/cd_logic.py   AccordionMega(Download)
def eject():
	cd.eject()
	update()
 
def next():