-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyqt_genel_bakis.py
59 lines (47 loc) · 1.64 KB
/
pyqt_genel_bakis.py
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
"""
) ( (
( /( )\ ) )\ ( ) ) (
)\()) ((_) ( /( ((_) )\ ) ( /( ( ( /( )(
((_)\ _ )(_)) _ (()/( )(_)) )\ )(_)) (()\
| |(_) | | ((_)_ | | )(_)) ((_)_ ((_) ((_)_ ((_)
| '_ \ | | / _` | | | | || | / _` | (_-< / _` | | '_|
|_.__/ |_| \__,_| |_| \_, | \__,_| /__/ \__,_| |_|
|__/
"""
from PyQt5.QtWidgets import *
import sys
'''Uygulamanızın ana penceresini özelleştirmek için alt sınıf QMainWindow'''
class MainWindow(QMainWindow):
def __init__(self, *args, **kwargs):
super(MainWindow, self).__init__(*args, **kwargs)#Pencere başlığımız
self.setWindowTitle("Pencerede Neler Varmış???")
layout = QVBoxLayout()
widgets = [QCheckBox,
QComboBox,
#QCalendarWidget,
QDateEdit,
QDateTimeEdit,
QDial,
QDoubleSpinBox,
QFontComboBox,
QLCDNumber,
QLabel,
QListWidget,
QLineEdit,
QDialogButtonBox,
QProgressBar,
QPushButton,
QRadioButton,
#QTimer,
QSlider,
QSpinBox,
QTimeEdit]
for w in widgets:
layout.addWidget(w())
widget = QWidget()
widget.setLayout(layout)
self.setCentralWidget(widget)
app = QApplication(sys.argv)
window = MainWindow()
window.show() # Onemli!!!!! Pencere default olarak gizli durumda.
app.exec_()