Upload files to ''

This commit is contained in:
C20H25N3O 2020-08-17 20:39:02 +00:00
parent 9a6cc7993d
commit 31bc0f2082
4 changed files with 31 additions and 2 deletions

View file

@ -1,2 +1 @@
# joePera
# Joe Pera

28
main.py Normal file
View file

@ -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()

2
requirements.txt Normal file
View file

@ -0,0 +1,2 @@
playsound
PyQt5

BIN
sound.wav Normal file

Binary file not shown.