-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
41 lines (29 loc) · 924 Bytes
/
main.py
File metadata and controls
41 lines (29 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from PyQt5.QtWidgets import QApplication, QMainWindow
from bite import PyBite
class MainApp(QMainWindow):
def __init__(self):
super().__init__()
self.initUI()
self.setWindowTitle("Welcome to CodeChallenges")
def initUI(self):
self.createMenu()
self.setCentralWidget(PyBite())
self.statusbar = self.statusBar()
self.statusbar.showMessage(
"A Community that Masters Python through Code Challenges"
)
self.showMaximized()
self.show()
def createMenu(self):
menubar = self.menuBar()
fileMenu = menubar.addMenu("File")
fileMenu.addMenu("New")
editMenu = menubar.addMenu("Edit")
editMenu.addMenu("Copy")
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
app.setStyle("Fusion")
mainApp = MainApp()
mainApp.show()
sys.exit(app.exec_())