Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
P
Preseed Configuration
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Alperen Saylar
Preseed Configuration
Commits
b8de6c5c
Kaydet (Commit)
b8de6c5c
authored
Tem 29, 2019
tarafından
Alperen Saylar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Upload New File
üst
ab9382ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
515 additions
and
0 deletions
+515
-0
Interface.py
Interface.py
+515
-0
No files found.
Interface.py
0 → 100644
Dosyayı görüntüle @
b8de6c5c
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dialog.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from
PyQt5
import
QtCore
,
QtGui
,
QtWidgets
from
PyQt5.QtWidgets
import
QDialog
from
PyQt5.QtGui
import
QIntValidator
from
Functions
import
*
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dialog.ui'
# Created by: PyQt5 UI code generator 5.7
# WARNING! All changes made in this file will be lost!
from
PyQt5
import
QtCore
,
QtGui
,
QtWidgets
class
Ui_Dialog
(
object
):
def
setupUi
(
self
,
Dialog
):
Dialog
.
setObjectName
(
"Dialog"
)
Dialog
.
setFixedSize
(
350
,
671
)
Dialog
.
setStyleSheet
(
"QDialog {background-image:url('background.png'); }"
)
self
.
horizontalLayoutWidget
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
horizontalLayoutWidget
.
setGeometry
(
QtCore
.
QRect
(
20
,
10
,
111
,
31
))
self
.
horizontalLayoutWidget
.
setObjectName
(
"horizontalLayoutWidget"
)
self
.
horizontalLayout
=
QtWidgets
.
QHBoxLayout
(
self
.
horizontalLayoutWidget
)
self
.
horizontalLayout
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
horizontalLayout
.
setObjectName
(
"horizontalLayout"
)
self
.
label
=
QtWidgets
.
QLabel
(
self
.
horizontalLayoutWidget
)
self
.
label
.
setObjectName
(
"label"
)
self
.
horizontalLayout
.
addWidget
(
self
.
label
)
self
.
horizontalLayoutWidget_2
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
horizontalLayoutWidget_2
.
setGeometry
(
QtCore
.
QRect
(
20
,
90
,
112
,
31
))
self
.
horizontalLayoutWidget_2
.
setObjectName
(
"horizontalLayoutWidget_2"
)
self
.
horizontalLayout_3
=
QtWidgets
.
QHBoxLayout
(
self
.
horizontalLayoutWidget_2
)
self
.
horizontalLayout_3
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
horizontalLayout_3
.
setObjectName
(
"horizontalLayout_3"
)
self
.
label_3
=
QtWidgets
.
QLabel
(
self
.
horizontalLayoutWidget_2
)
self
.
label_3
.
setObjectName
(
"label_3"
)
self
.
horizontalLayout_3
.
addWidget
(
self
.
label_3
)
self
.
horizontalLayoutWidget_8
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
horizontalLayoutWidget_8
.
setGeometry
(
QtCore
.
QRect
(
20
,
170
,
111
,
31
))
self
.
horizontalLayoutWidget_8
.
setObjectName
(
"horizontalLayoutWidget_8"
)
self
.
horizontalLayout_10
=
QtWidgets
.
QHBoxLayout
(
self
.
horizontalLayoutWidget_8
)
self
.
horizontalLayout_10
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
horizontalLayout_10
.
setObjectName
(
"horizontalLayout_10"
)
self
.
label_10
=
QtWidgets
.
QLabel
(
self
.
horizontalLayoutWidget_8
)
self
.
label_10
.
setObjectName
(
"label_10"
)
self
.
horizontalLayout_10
.
addWidget
(
self
.
label_10
)
self
.
horizontalLayoutWidget_3
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
horizontalLayoutWidget_3
.
setGeometry
(
QtCore
.
QRect
(
20
,
380
,
211
,
31
))
self
.
horizontalLayoutWidget_3
.
setObjectName
(
"horizontalLayoutWidget_3"
)
self
.
horizontalLayout_4
=
QtWidgets
.
QHBoxLayout
(
self
.
horizontalLayoutWidget_3
)
self
.
horizontalLayout_4
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
horizontalLayout_4
.
setObjectName
(
"horizontalLayout_4"
)
self
.
label_4
=
QtWidgets
.
QLabel
(
self
.
horizontalLayoutWidget_3
)
self
.
label_4
.
setObjectName
(
"label_4"
)
self
.
horizontalLayout_4
.
addWidget
(
self
.
label_4
)
self
.
horizontalLayoutWidget_11
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
horizontalLayoutWidget_11
.
setGeometry
(
QtCore
.
QRect
(
20
,
240
,
91
,
131
))
self
.
horizontalLayoutWidget_11
.
setObjectName
(
"horizontalLayoutWidget_11"
)
self
.
horizontalLayout_45
=
QtWidgets
.
QHBoxLayout
(
self
.
horizontalLayoutWidget_11
)
self
.
horizontalLayout_45
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
horizontalLayout_45
.
setObjectName
(
"horizontalLayout_45"
)
self
.
verticalLayout_3
=
QtWidgets
.
QVBoxLayout
()
self
.
verticalLayout_3
.
setObjectName
(
"verticalLayout_3"
)
self
.
label_37
=
QtWidgets
.
QLabel
(
self
.
horizontalLayoutWidget_11
)
self
.
label_37
.
setObjectName
(
"label_37"
)
self
.
verticalLayout_3
.
addWidget
(
self
.
label_37
)
self
.
label_39
=
QtWidgets
.
QLabel
(
self
.
horizontalLayoutWidget_11
)
self
.
label_39
.
setObjectName
(
"label_39"
)
self
.
verticalLayout_3
.
addWidget
(
self
.
label_39
)
self
.
label_38
=
QtWidgets
.
QLabel
(
self
.
horizontalLayoutWidget_11
)
self
.
label_38
.
setObjectName
(
"label_38"
)
self
.
verticalLayout_3
.
addWidget
(
self
.
label_38
)
self
.
label_40
=
QtWidgets
.
QLabel
(
self
.
horizontalLayoutWidget_11
)
self
.
label_40
.
setObjectName
(
"label_40"
)
self
.
verticalLayout_3
.
addWidget
(
self
.
label_40
)
self
.
horizontalLayout_45
.
addLayout
(
self
.
verticalLayout_3
)
self
.
verticalLayoutWidget_2
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
verticalLayoutWidget_2
.
setGeometry
(
QtCore
.
QRect
(
110
,
241
,
221
,
141
))
self
.
verticalLayoutWidget_2
.
setObjectName
(
"verticalLayoutWidget_2"
)
self
.
verticalLayout_4
=
QtWidgets
.
QVBoxLayout
(
self
.
verticalLayoutWidget_2
)
self
.
verticalLayout_4
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
verticalLayout_4
.
setObjectName
(
"verticalLayout_4"
)
self
.
lineEdit_37
=
QtWidgets
.
QLineEdit
(
self
.
verticalLayoutWidget_2
)
self
.
lineEdit_37
.
setText
(
""
)
self
.
lineEdit_37
.
setObjectName
(
"lineEdit_37"
)
self
.
verticalLayout_4
.
addWidget
(
self
.
lineEdit_37
)
self
.
lineEdit_38
=
QtWidgets
.
QLineEdit
(
self
.
verticalLayoutWidget_2
)
self
.
lineEdit_38
.
setObjectName
(
"lineEdit_38"
)
self
.
verticalLayout_4
.
addWidget
(
self
.
lineEdit_38
)
self
.
lineEdit_39
=
QtWidgets
.
QLineEdit
(
self
.
verticalLayoutWidget_2
)
self
.
lineEdit_39
.
setObjectName
(
"lineEdit_39"
)
self
.
verticalLayout_4
.
addWidget
(
self
.
lineEdit_39
)
self
.
lineEdit_36
=
QtWidgets
.
QLineEdit
(
self
.
verticalLayoutWidget_2
)
self
.
lineEdit_36
.
setObjectName
(
"lineEdit_36"
)
self
.
verticalLayout_4
.
addWidget
(
self
.
lineEdit_36
)
self
.
verticalLayoutWidget_3
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
verticalLayoutWidget_3
.
setGeometry
(
QtCore
.
QRect
(
20
,
500
,
141
,
131
))
self
.
verticalLayoutWidget_3
.
setObjectName
(
"verticalLayoutWidget_3"
)
self
.
verticalLayout_5
=
QtWidgets
.
QVBoxLayout
(
self
.
verticalLayoutWidget_3
)
self
.
verticalLayout_5
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
verticalLayout_5
.
setObjectName
(
"verticalLayout_5"
)
self
.
label_21
=
QtWidgets
.
QLabel
(
self
.
verticalLayoutWidget_3
)
self
.
label_21
.
setObjectName
(
"label_21"
)
self
.
verticalLayout_5
.
addWidget
(
self
.
label_21
)
self
.
label_22
=
QtWidgets
.
QLabel
(
self
.
verticalLayoutWidget_3
)
self
.
label_22
.
setObjectName
(
"label_22"
)
self
.
verticalLayout_5
.
addWidget
(
self
.
label_22
)
self
.
label_23
=
QtWidgets
.
QLabel
(
self
.
verticalLayoutWidget_3
)
self
.
label_23
.
setObjectName
(
"label_23"
)
self
.
verticalLayout_5
.
addWidget
(
self
.
label_23
)
self
.
label_24
=
QtWidgets
.
QLabel
(
self
.
verticalLayoutWidget_3
)
self
.
label_24
.
setObjectName
(
"label_24"
)
self
.
verticalLayout_5
.
addWidget
(
self
.
label_24
)
self
.
verticalLayoutWidget_4
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
verticalLayoutWidget_4
.
setGeometry
(
QtCore
.
QRect
(
160
,
500
,
171
,
131
))
self
.
verticalLayoutWidget_4
.
setObjectName
(
"verticalLayoutWidget_4"
)
self
.
verticalLayout_6
=
QtWidgets
.
QVBoxLayout
(
self
.
verticalLayoutWidget_4
)
self
.
verticalLayout_6
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
verticalLayout_6
.
setObjectName
(
"verticalLayout_6"
)
self
.
lineEdit
=
QtWidgets
.
QLineEdit
(
self
.
verticalLayoutWidget_4
)
self
.
lineEdit
.
setObjectName
(
"lineEdit"
)
self
.
verticalLayout_6
.
addWidget
(
self
.
lineEdit
)
self
.
lineEdit_3
=
QtWidgets
.
QLineEdit
(
self
.
verticalLayoutWidget_4
)
self
.
lineEdit_3
.
setInputMethodHints
(
QtCore
.
Qt
.
ImhNone
)
self
.
lineEdit_3
.
setObjectName
(
"lineEdit_3"
)
self
.
verticalLayout_6
.
addWidget
(
self
.
lineEdit_3
)
self
.
lineEdit_20
=
QtWidgets
.
QLineEdit
(
self
.
verticalLayoutWidget_4
)
self
.
lineEdit_20
.
setEchoMode
(
QtWidgets
.
QLineEdit
.
Password
)
self
.
lineEdit_20
.
setObjectName
(
"lineEdit_20"
)
self
.
verticalLayout_6
.
addWidget
(
self
.
lineEdit_20
)
self
.
lineEdit_4
=
QtWidgets
.
QLineEdit
(
self
.
verticalLayoutWidget_4
)
self
.
lineEdit_4
.
setEchoMode
(
QtWidgets
.
QLineEdit
.
Password
)
self
.
lineEdit_4
.
setObjectName
(
"lineEdit_4"
)
self
.
verticalLayout_6
.
addWidget
(
self
.
lineEdit_4
)
self
.
label_2
=
QtWidgets
.
QLabel
(
Dialog
)
self
.
label_2
.
setGeometry
(
QtCore
.
QRect
(
20
,
210
,
321
,
21
))
font
=
QtGui
.
QFont
()
font
.
setFamily
(
"DejaVu Serif"
)
font
.
setPointSize
(
8
)
self
.
label_2
.
setFont
(
font
)
self
.
label_2
.
setObjectName
(
"label_2"
)
self
.
verticalLayoutWidget
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
verticalLayoutWidget
.
setGeometry
(
QtCore
.
QRect
(
20
,
50
,
111
,
31
))
self
.
verticalLayoutWidget
.
setObjectName
(
"verticalLayoutWidget"
)
self
.
verticalLayout
=
QtWidgets
.
QVBoxLayout
(
self
.
verticalLayoutWidget
)
self
.
verticalLayout
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
verticalLayout
.
setObjectName
(
"verticalLayout"
)
self
.
label_8
=
QtWidgets
.
QLabel
(
self
.
verticalLayoutWidget
)
self
.
label_8
.
setObjectName
(
"label_8"
)
self
.
verticalLayout
.
addWidget
(
self
.
label_8
)
self
.
verticalLayoutWidget_5
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
verticalLayoutWidget_5
.
setGeometry
(
QtCore
.
QRect
(
130
,
50
,
101
,
31
))
self
.
verticalLayoutWidget_5
.
setObjectName
(
"verticalLayoutWidget_5"
)
self
.
verticalLayout_7
=
QtWidgets
.
QVBoxLayout
(
self
.
verticalLayoutWidget_5
)
self
.
verticalLayout_7
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
verticalLayout_7
.
setObjectName
(
"verticalLayout_7"
)
self
.
comboBox
=
QtWidgets
.
QComboBox
(
self
.
verticalLayoutWidget_5
)
self
.
comboBox
.
setObjectName
(
"comboBox"
)
self
.
comboBox
.
addItem
(
""
)
self
.
comboBox
.
addItem
(
""
)
self
.
verticalLayout_7
.
addWidget
(
self
.
comboBox
)
self
.
verticalLayoutWidget_6
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
verticalLayoutWidget_6
.
setGeometry
(
QtCore
.
QRect
(
20
,
130
,
111
,
31
))
self
.
verticalLayoutWidget_6
.
setObjectName
(
"verticalLayoutWidget_6"
)
self
.
verticalLayout_9
=
QtWidgets
.
QVBoxLayout
(
self
.
verticalLayoutWidget_6
)
self
.
verticalLayout_9
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
verticalLayout_9
.
setObjectName
(
"verticalLayout_9"
)
self
.
label_5
=
QtWidgets
.
QLabel
(
self
.
verticalLayoutWidget_6
)
self
.
label_5
.
setObjectName
(
"label_5"
)
self
.
verticalLayout_9
.
addWidget
(
self
.
label_5
)
self
.
verticalLayoutWidget_7
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
verticalLayoutWidget_7
.
setGeometry
(
QtCore
.
QRect
(
130
,
130
,
101
,
31
))
self
.
verticalLayoutWidget_7
.
setObjectName
(
"verticalLayoutWidget_7"
)
self
.
verticalLayout_10
=
QtWidgets
.
QVBoxLayout
(
self
.
verticalLayoutWidget_7
)
self
.
verticalLayout_10
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
verticalLayout_10
.
setObjectName
(
"verticalLayout_10"
)
self
.
comboBox_2
=
QtWidgets
.
QComboBox
(
self
.
verticalLayoutWidget_7
)
self
.
comboBox_2
.
setObjectName
(
"comboBox_2"
)
self
.
comboBox_2
.
addItem
(
""
)
self
.
comboBox_2
.
addItem
(
""
)
self
.
verticalLayout_10
.
addWidget
(
self
.
comboBox_2
)
self
.
horizontalLayoutWidget_4
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
horizontalLayoutWidget_4
.
setGeometry
(
QtCore
.
QRect
(
130
,
90
,
101
,
31
))
self
.
horizontalLayoutWidget_4
.
setObjectName
(
"horizontalLayoutWidget_4"
)
self
.
horizontalLayout_2
=
QtWidgets
.
QHBoxLayout
(
self
.
horizontalLayoutWidget_4
)
self
.
horizontalLayout_2
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
horizontalLayout_2
.
setObjectName
(
"horizontalLayout_2"
)
self
.
radioButton_5
=
QtWidgets
.
QRadioButton
(
self
.
horizontalLayoutWidget_4
)
self
.
radioButton_5
.
setObjectName
(
"radioButton_5"
)
self
.
horizontalLayout_2
.
addWidget
(
self
.
radioButton_5
)
self
.
radioButton_6
=
QtWidgets
.
QRadioButton
(
self
.
horizontalLayoutWidget_4
)
self
.
radioButton_6
.
setObjectName
(
"radioButton_6"
)
self
.
horizontalLayout_2
.
addWidget
(
self
.
radioButton_6
)
self
.
horizontalLayoutWidget_5
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
horizontalLayoutWidget_5
.
setGeometry
(
QtCore
.
QRect
(
130
,
10
,
101
,
31
))
self
.
horizontalLayoutWidget_5
.
setObjectName
(
"horizontalLayoutWidget_5"
)
self
.
horizontalLayout_5
=
QtWidgets
.
QHBoxLayout
(
self
.
horizontalLayoutWidget_5
)
self
.
horizontalLayout_5
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
horizontalLayout_5
.
setObjectName
(
"horizontalLayout_5"
)
self
.
radioButton_9
=
QtWidgets
.
QRadioButton
(
self
.
horizontalLayoutWidget_5
)
self
.
radioButton_9
.
setObjectName
(
"radioButton_9"
)
self
.
horizontalLayout_5
.
addWidget
(
self
.
radioButton_9
)
self
.
radioButton_10
=
QtWidgets
.
QRadioButton
(
self
.
horizontalLayoutWidget_5
)
self
.
radioButton_10
.
setObjectName
(
"radioButton_10"
)
self
.
horizontalLayout_5
.
addWidget
(
self
.
radioButton_10
)
self
.
horizontalLayoutWidget_6
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
horizontalLayoutWidget_6
.
setGeometry
(
QtCore
.
QRect
(
130
,
170
,
101
,
31
))
self
.
horizontalLayoutWidget_6
.
setObjectName
(
"horizontalLayoutWidget_6"
)
self
.
horizontalLayout_6
=
QtWidgets
.
QHBoxLayout
(
self
.
horizontalLayoutWidget_6
)
self
.
horizontalLayout_6
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
horizontalLayout_6
.
setObjectName
(
"horizontalLayout_6"
)
self
.
radioButton_11
=
QtWidgets
.
QRadioButton
(
self
.
horizontalLayoutWidget_6
)
self
.
radioButton_11
.
setObjectName
(
"radioButton_11"
)
self
.
horizontalLayout_6
.
addWidget
(
self
.
radioButton_11
)
self
.
radioButton_12
=
QtWidgets
.
QRadioButton
(
self
.
horizontalLayoutWidget_6
)
self
.
radioButton_12
.
setObjectName
(
"radioButton_12"
)
self
.
horizontalLayout_6
.
addWidget
(
self
.
radioButton_12
)
self
.
horizontalLayoutWidget_7
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
horizontalLayoutWidget_7
.
setGeometry
(
QtCore
.
QRect
(
230
,
380
,
98
,
31
))
self
.
horizontalLayoutWidget_7
.
setObjectName
(
"horizontalLayoutWidget_7"
)
self
.
horizontalLayout_7
=
QtWidgets
.
QHBoxLayout
(
self
.
horizontalLayoutWidget_7
)
self
.
horizontalLayout_7
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
horizontalLayout_7
.
setObjectName
(
"horizontalLayout_7"
)
self
.
radioButton_13
=
QtWidgets
.
QRadioButton
(
self
.
horizontalLayoutWidget_7
)
self
.
radioButton_13
.
setObjectName
(
"radioButton_13"
)
self
.
horizontalLayout_7
.
addWidget
(
self
.
radioButton_13
)
self
.
radioButton_14
=
QtWidgets
.
QRadioButton
(
self
.
horizontalLayoutWidget_7
)
self
.
radioButton_14
.
setObjectName
(
"radioButton_14"
)
self
.
horizontalLayout_7
.
addWidget
(
self
.
radioButton_14
)
self
.
pushButton
=
QtWidgets
.
QPushButton
(
Dialog
)
self
.
pushButton
.
setGeometry
(
QtCore
.
QRect
(
250
,
640
,
82
,
23
))
self
.
pushButton
.
setObjectName
(
"pushButton"
)
self
.
verticalLayoutWidget_8
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
verticalLayoutWidget_8
.
setGeometry
(
QtCore
.
QRect
(
20
,
420
,
141
,
71
))
self
.
verticalLayoutWidget_8
.
setObjectName
(
"verticalLayoutWidget_8"
)
self
.
verticalLayout_8
=
QtWidgets
.
QVBoxLayout
(
self
.
verticalLayoutWidget_8
)
self
.
verticalLayout_8
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
verticalLayout_8
.
setObjectName
(
"verticalLayout_8"
)
self
.
label_27
=
QtWidgets
.
QLabel
(
self
.
verticalLayoutWidget_8
)
self
.
label_27
.
setObjectName
(
"label_27"
)
self
.
verticalLayout_8
.
addWidget
(
self
.
label_27
)
self
.
label_28
=
QtWidgets
.
QLabel
(
self
.
verticalLayoutWidget_8
)
self
.
label_28
.
setObjectName
(
"label_28"
)
self
.
verticalLayout_8
.
addWidget
(
self
.
label_28
)
self
.
verticalLayoutWidget_9
=
QtWidgets
.
QWidget
(
Dialog
)
self
.
verticalLayoutWidget_9
.
setGeometry
(
QtCore
.
QRect
(
160
,
420
,
171
,
71
))
self
.
verticalLayoutWidget_9
.
setObjectName
(
"verticalLayoutWidget_9"
)
self
.
verticalLayout_11
=
QtWidgets
.
QVBoxLayout
(
self
.
verticalLayoutWidget_9
)
self
.
verticalLayout_11
.
setContentsMargins
(
0
,
0
,
0
,
0
)
self
.
verticalLayout_11
.
setObjectName
(
"verticalLayout_11"
)
self
.
lineEdit_5
=
QtWidgets
.
QLineEdit
(
self
.
verticalLayoutWidget_9
)
self
.
lineEdit_5
.
setEchoMode
(
QtWidgets
.
QLineEdit
.
Password
)
self
.
lineEdit_5
.
setObjectName
(
"lineEdit_5"
)
self
.
verticalLayout_11
.
addWidget
(
self
.
lineEdit_5
)
self
.
lineEdit_2
=
QtWidgets
.
QLineEdit
(
self
.
verticalLayoutWidget_9
)
self
.
lineEdit_2
.
setEchoMode
(
QtWidgets
.
QLineEdit
.
Password
)
self
.
lineEdit_2
.
setObjectName
(
"lineEdit_2"
)
self
.
verticalLayout_11
.
addWidget
(
self
.
lineEdit_2
)
##########
self
.
defaultYes
()
self
.
radioButton_9
.
clicked
.
connect
(
self
.
YesRadioAction1
)
self
.
radioButton_10
.
clicked
.
connect
(
self
.
NoRadioAction1
)
self
.
radioButton_5
.
clicked
.
connect
(
self
.
YesRadioAction2
)
self
.
radioButton_6
.
clicked
.
connect
(
self
.
NoRadioAction2
)
self
.
radioButton_11
.
clicked
.
connect
(
self
.
YesRadioAction3
)
self
.
radioButton_12
.
clicked
.
connect
(
self
.
NoRadioAction3
)
self
.
radioButton_13
.
clicked
.
connect
(
self
.
YesRadioAction4
)
self
.
radioButton_14
.
clicked
.
connect
(
self
.
NoRadioAction4
)
self
.
pushButton
.
clicked
.
connect
(
self
.
OKButtonAction
)
self
.
retranslateUi
(
Dialog
)
QtCore
.
QMetaObject
.
connectSlotsByName
(
Dialog
)
self
.
retranslateUi
(
Dialog
)
QtCore
.
QMetaObject
.
connectSlotsByName
(
Dialog
)
def
retranslateUi
(
self
,
Dialog
):
_translate
=
QtCore
.
QCoreApplication
.
translate
Dialog
.
setWindowTitle
(
_translate
(
"Dialog"
,
"Dialog"
))
self
.
label
.
setText
(
_translate
(
"Dialog"
,
"Keymap select:"
))
self
.
label_3
.
setText
(
_translate
(
"Dialog"
,
"Keyboard select: "
))
self
.
label_10
.
setText
(
_translate
(
"Dialog"
,
"Set IP to Static?:"
))
self
.
label_4
.
setText
(
_translate
(
"Dialog"
,
"Skip creation of a root account?"
))
self
.
label_37
.
setText
(
_translate
(
"Dialog"
,
"IP Address:"
))
self
.
label_39
.
setText
(
_translate
(
"Dialog"
,
"Netmask:"
))
self
.
label_38
.
setText
(
_translate
(
"Dialog"
,
"Gateway:"
))
self
.
label_40
.
setText
(
_translate
(
"Dialog"
,
"Nameserver:"
))
self
.
label_21
.
setText
(
_translate
(
"Dialog"
,
"User Fullname:"
))
self
.
label_22
.
setText
(
_translate
(
"Dialog"
,
"Username:"
))
self
.
label_23
.
setText
(
_translate
(
"Dialog"
,
"User Password:"
))
self
.
label_24
.
setText
(
_translate
(
"Dialog"
,
"User Password Again:"
))
self
.
label_2
.
setText
(
_translate
(
"Dialog"
,
"[Please only enter numbers (Exp:123.123.123.123)]"
))
self
.
label_8
.
setText
(
_translate
(
"Dialog"
,
"Keymap [tr,us]:"
))
self
.
comboBox
.
setItemText
(
0
,
_translate
(
"Dialog"
,
"tr"
))
self
.
comboBox
.
setItemText
(
1
,
_translate
(
"Dialog"
,
"us"
))
self
.
label_5
.
setText
(
_translate
(
"Dialog"
,
"Keyboard [tr,us]:"
))
self
.
comboBox_2
.
setItemText
(
0
,
_translate
(
"Dialog"
,
"tr"
))
self
.
comboBox_2
.
setItemText
(
1
,
_translate
(
"Dialog"
,
"us"
))
self
.
radioButton_5
.
setText
(
_translate
(
"Dialog"
,
"Yes"
))
self
.
radioButton_6
.
setText
(
_translate
(
"Dialog"
,
"No"
))
self
.
radioButton_9
.
setText
(
_translate
(
"Dialog"
,
"Yes"
))
self
.
radioButton_10
.
setText
(
_translate
(
"Dialog"
,
"No"
))
self
.
radioButton_11
.
setText
(
_translate
(
"Dialog"
,
"Yes"
))
self
.
radioButton_12
.
setText
(
_translate
(
"Dialog"
,
"No"
))
self
.
radioButton_13
.
setText
(
_translate
(
"Dialog"
,
"Yes"
))
self
.
radioButton_14
.
setText
(
_translate
(
"Dialog"
,
"No"
))
self
.
pushButton
.
setText
(
_translate
(
"Dialog"
,
"OK"
))
self
.
label_27
.
setText
(
_translate
(
"Dialog"
,
"Root Password:"
))
self
.
label_28
.
setText
(
_translate
(
"Dialog"
,
"Root Password Again:"
))
def
defaultYes
(
self
):
self
.
radioButton_9
.
setChecked
(
True
)
self
.
radioButton_5
.
setChecked
(
True
)
self
.
radioButton_11
.
setChecked
(
True
)
self
.
radioButton_13
.
setChecked
(
True
)
#RadioAction1
def
YesRadioAction1
(
self
):
self
.
comboBox
.
setEnabled
(
True
)
def
NoRadioAction1
(
self
):
self
.
comboBox
.
setEnabled
(
False
)
#RadioAction2
def
YesRadioAction2
(
self
):
self
.
comboBox_2
.
setEnabled
(
True
)
def
NoRadioAction2
(
self
):
self
.
comboBox_2
.
setEnabled
(
False
)
#RadioAction3
def
YesRadioAction3
(
self
):
self
.
lineEdit_36
.
setEnabled
(
True
)
self
.
lineEdit_37
.
setEnabled
(
True
)
self
.
lineEdit_38
.
setEnabled
(
True
)
self
.
lineEdit_39
.
setEnabled
(
True
)
###Kontrol Yesil-Kırmızı
def
uygunMu
(
self
):
sonuc
=
ipvalid
(
self
.
lineEdit_37
.
text
())
sonuc1
=
ipvalid
(
self
.
lineEdit_38
.
text
())
sonuc2
=
ipvalid
(
self
.
lineEdit_39
.
text
())
sonuc3
=
ipvalid
(
self
.
lineEdit_36
.
text
())
sonuc4
=
self
.
lineEdit_5
.
text
()
sonuc5
=
self
.
lineEdit_2
.
text
()
sonuc6
=
self
.
lineEdit_20
.
text
()
sonuc7
=
self
.
lineEdit_4
.
text
()
if
(
sonuc
==
True
and
sonuc1
==
True
and
sonuc2
==
True
and
sonuc3
==
True
and
sonuc4
==
sonuc5
and
sonuc6
==
sonuc7
):
return
True
else
:
if
(
sonuc
==
False
):
self
.
lineEdit_37
.
setStyleSheet
(
"background-color:#ffdbdb"
)
else
:
self
.
lineEdit_37
.
setStyleSheet
(
"background-color:#e6ffe8"
)
if
(
sonuc1
==
False
):
self
.
lineEdit_38
.
setStyleSheet
(
"background-color:#ffdbdb"
)
else
:
self
.
lineEdit_38
.
setStyleSheet
(
"background-color:#e6ffe8"
)
if
(
sonuc2
==
False
):
self
.
lineEdit_39
.
setStyleSheet
(
"background-color:#ffdbdb"
)
else
:
self
.
lineEdit_39
.
setStyleSheet
(
"background-color:#e6ffe8"
)
if
(
sonuc3
==
False
):
self
.
lineEdit_36
.
setStyleSheet
(
"background-color:#ffdbdb"
)
else
:
self
.
lineEdit_36
.
setStyleSheet
(
"background-color:#e6ffe8"
)
if
(
sonuc5
!=
sonuc4
):
self
.
lineEdit_2
.
setStyleSheet
(
"background-color:#ffdbdb"
)
if
(
sonuc6
!=
sonuc7
):
self
.
lineEdit_4
.
setStyleSheet
(
"background-color:#ffdbdb"
)
return
False
###Kontrol Yesil-Kırmızı
def
uygunMu2
(
self
):
sonuc4
=
self
.
lineEdit_5
.
text
()
sonuc5
=
self
.
lineEdit_2
.
text
()
sonuc6
=
self
.
lineEdit_20
.
text
()
sonuc7
=
self
.
lineEdit_4
.
text
()
if
(
sonuc4
==
sonuc5
and
sonuc6
==
sonuc7
):
return
True
else
:
if
(
sonuc5
!=
sonuc4
):
self
.
lineEdit_2
.
setStyleSheet
(
"background-color:#ffdbdb"
)
else
:
self
.
lineEdit_2
.
setStyleSheet
(
"background-color:#e6ffe8"
)
if
(
sonuc6
!=
sonuc7
):
self
.
lineEdit_4
.
setStyleSheet
(
"background-color:#ffdbdb"
)
else
:
self
.
lineEdit_4
.
setStyleSheet
(
"background-color:#e6ffe8"
)
return
False
def
NoRadioAction3
(
self
):
self
.
lineEdit_36
.
setEnabled
(
False
)
self
.
lineEdit_37
.
setEnabled
(
False
)
self
.
lineEdit_38
.
setEnabled
(
False
)
self
.
lineEdit_39
.
setEnabled
(
False
)
#RadioAction4
def
YesRadioAction4
(
self
):
self
.
lineEdit_5
.
setEnabled
(
True
)
self
.
lineEdit_2
.
setEnabled
(
True
)
def
NoRadioAction4
(
self
):
self
.
lineEdit_5
.
setEnabled
(
False
)
self
.
lineEdit_2
.
setEnabled
(
False
)
#OKButtonAction
def
OKButtonAction
(
self
):
if
(
self
.
radioButton_11
.
isChecked
()
==
True
):
if
(
self
.
uygunMu
()
==
True
):
#RadioAction1
yazilarYes1
()
if
(
self
.
radioButton_9
.
isChecked
()
==
True
):
radioYes_1
(
self
.
comboBox
.
currentText
())
elif
(
self
.
radioButton_10
.
isChecked
()
==
True
):
yazilarNo1
()
#RadioAction2
if
(
self
.
radioButton_5
.
isChecked
()
==
True
):
radioYes_2
(
self
.
comboBox_2
.
currentText
())
yazilarYes2
()
elif
(
self
.
radioButton_6
.
isChecked
()
==
True
):
yazilarNo2
()
#RadioAction3
if
(
self
.
radioButton_11
.
isChecked
()
==
True
):
radioYes_3
(
self
.
lineEdit_37
.
text
(),
"ip"
)
radioYes_3
(
self
.
lineEdit_38
.
text
(),
"mask"
)
radioYes_3
(
self
.
lineEdit_39
.
text
(),
"gateway"
)
radioYes_3
(
self
.
lineEdit_36
.
text
(),
"nameserver"
)
#RadioAction4
if
(
self
.
radioButton_13
.
isChecked
()
==
True
):
yazilarYes4
()
radioYes_4
(
self
.
lineEdit_5
.
text
(),
"rp"
)
radioYes_4
(
self
.
lineEdit_2
.
text
(),
"rpa"
)
radioYes_5
(
self
.
lineEdit
.
text
(),
"uf"
)
radioYes_5
(
self
.
lineEdit_3
.
text
(),
"un"
)
radioYes_5
(
self
.
lineEdit_20
.
text
(),
"up"
)
radioYes_5
(
self
.
lineEdit_4
.
text
(),
"upa"
)
yazilarYesNo4
()
elif
(
self
.
radioButton_14
.
isChecked
()
==
True
):
yazilarNo4
()
radioYes_5
(
self
.
lineEdit
.
text
(),
"uf"
)
radioYes_5
(
self
.
lineEdit_3
.
text
(),
"un"
)
radioYes_5
(
self
.
lineEdit_20
.
text
(),
"up"
)
radioYes_5
(
self
.
lineEdit_4
.
text
(),
"upa"
)
yazilarYesNo4
()
app
.
exit
()
else
:
return
elif
(
self
.
radioButton_12
.
isChecked
()
==
True
):
if
(
self
.
uygunMu2
()
==
True
):
# RadioAction1
yazilarYes1
()
if
(
self
.
radioButton_9
.
isChecked
()
==
True
):
radioYes_1
(
self
.
comboBox
.
currentText
())
elif
(
self
.
radioButton_10
.
isChecked
()
==
True
):
yazilarNo1
()
# RadioAction2
if
(
self
.
radioButton_5
.
isChecked
()
==
True
):
radioYes_2
(
self
.
comboBox_2
.
currentText
())
yazilarYes2
()
elif
(
self
.
radioButton_6
.
isChecked
()
==
True
):
yazilarNo2
()
# RadioAction3
if
(
self
.
radioButton_12
.
isChecked
()
==
True
):
yazilarNo3
()
# RadioAction4
if
(
self
.
radioButton_13
.
isChecked
()
==
True
):
yazilarYes4
()
radioYes_4
(
self
.
lineEdit_5
.
text
(),
"rp"
)
radioYes_4
(
self
.
lineEdit_2
.
text
(),
"rpa"
)
radioYes_5
(
self
.
lineEdit
.
text
(),
"uf"
)
radioYes_5
(
self
.
lineEdit_3
.
text
(),
"un"
)
radioYes_5
(
self
.
lineEdit_20
.
text
(),
"up"
)
radioYes_5
(
self
.
lineEdit_4
.
text
(),
"upa"
)
yazilarYesNo4
()
elif
(
self
.
radioButton_14
.
isChecked
()
==
True
):
yazilarNo4
()
radioYes_5
(
self
.
lineEdit
.
text
(),
"uf"
)
radioYes_5
(
self
.
lineEdit_3
.
text
(),
"un"
)
radioYes_5
(
self
.
lineEdit_20
.
text
(),
"up"
)
radioYes_5
(
self
.
lineEdit_4
.
text
(),
"upa"
)
yazilarYesNo4
()
app
.
exit
()
else
:
return
True
if
__name__
==
"__main__"
:
import
sys
app
=
QtWidgets
.
QApplication
(
sys
.
argv
)
Dialog
=
QDialog
()
window
=
Ui_Dialog
()
window
.
setupUi
(
Dialog
)
Dialog
.
show
()
sys
.
exit
(
app
.
exec
())
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment