-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwin.py
More file actions
27 lines (23 loc) · 741 Bytes
/
Copy pathwin.py
File metadata and controls
27 lines (23 loc) · 741 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
import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QIcon
class App(QWidget):
def __init__(self):
super().__init__()
#self.title = 'PyQt5 simple window - pythonspot.com'
#self.left = 70
#self.top = 70
#self.width = 640
#self.height = 480
self.setWindowTitle('PyQt5 simple window - pythonspot.com')
self.setGeometry(70,70,640,480)
self.show()
#self.initUI()
'''def initUI(self):
self.setWindowTitle(self.title)
self.setGeometry(self.left, self.top, self.width, self.height)
self.show()'''
if __name__ == '__main__':
app = QApplication(sys.argv)
ex = App()
sys.exit(app.exec_())