diff --git a/README.md b/README.md index 92c4240..3d0589a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ -# joePera - +# Joe Pera \ No newline at end of file diff --git a/main.py b/main.py new file mode 100644 index 0000000..1d21c58 --- /dev/null +++ b/main.py @@ -0,0 +1,28 @@ +from playsound import playsound +from PyQt5 import QtWidgets +from PyQt5.QtWidgets import QApplication, QMainWindow +import sys + +class MyWindow(QMainWindow): + def __init__(self): + super(MyWindow, self).__init__() + self.setGeometry(200, 200, 300, 300) + self.setWindowTitle("Joe Pera") + self.initUI() + + def initUI(self): + self.button = QtWidgets.QPushButton(self) + self.button.setText("Nice") + self.button.move(100, 100) + self.button.clicked.connect(self.clicked) + + def clicked(self): + playsound("sound.wav") + +def window(): + app = QApplication(sys.argv) + win = MyWindow() + win.show() + sys.exit(app.exec_()) + +window() \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d0277e4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +playsound +PyQt5 \ No newline at end of file diff --git a/sound.wav b/sound.wav new file mode 100644 index 0000000..fd54215 Binary files /dev/null and b/sound.wav differ