15 lines
303 B
Python
15 lines
303 B
Python
#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import os
|
|
import ctypes
|
|
import time
|
|
import platform
|
|
|
|
|
|
class EasterEgg():
|
|
def openTray(self):
|
|
if platform.system() == 'Linux':
|
|
os.system("eject -t cdrom")
|
|
else:
|
|
ctypes.windll.winmm.mciSendStringW("set cdaudio door open", None, 0, None) |