from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
import sqlite3
css=""" 
/*Copyright (c) DevSec Studio. All rights reserved.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

/*-----QWidget-----*/
QWidget
{
	background-color: #242424;
	color: #fff;
	selection-background-color: #fff;
	selection-color: #000;

}


/*-----QLabel-----*/
QLabel
{
	background-color: transparent;
	color: #fff;

}


/*-----QMenuBar-----*/
QMenuBar 
{
	background-color: #4a5157;
	color: #fff;

}


QMenuBar::item 
{
	background-color: transparent;
	border-left: 1px solid #003333;
	padding: 5px;
	padding-left: 15px;
	padding-right: 15px;

}


QMenuBar::item:selected 
{
	background-color: #003333;
	border: 1px solid #006666;
	color: #fff;

}


QMenuBar::item:pressed 
{
	background-color: #006666;
	border: 1px solid #006666;
	color: #fff;

}


/*-----QMenu-----*/
QMenu
{
    background-color: #4a5157;
    border: 1px solid #4a5157;
    padding: 10px;
	color: #fff;

}


QMenu::item
{
    background-color: transparent;
    padding: 2px 20px 2px 20px;
	min-width: 200px;

}


QMenu::separator
{
   	background-color: #242424;
	height: 1px;

}


QMenu::item:disabled
{
    color: #555;
    background-color: transparent;
    padding: 2px 20px 2px 20px;

}


QMenu::item:selected
{
	background-color: #003333;
	border: 1px solid #006666;
	color: #fff;

}


/*-----QToolButton-----*/
QToolButton 
{
	background-color: transparent;
	color: #fff;
	padding: 3px;
	margin-left: 1px;
}


QToolButton:hover
{
	background-color: rgba(70,162,218,50%);
	border: 1px solid #46a2da;
	color: #000;
	
}


QToolButton:pressed
{
	background-color: #727272;
	border: 1px solid #46a2da;

}


QToolButton:checked
{
	background-color: #727272;
	border: 1px solid #222;
}


/*-----QPushButton-----*/
QPushButton
{
	background-color: #4891b4;
	color: #fff;
	min-width: 80px;
	border-radius: 4px;
	padding: 5px;

}


QPushButton::flat
{
	background-color: transparent;
	border: none;
	color: #000;

}


QPushButton::disabled
{
	background-color: #606060;
	color: #959595;
	border-color: #051a39;

}


QPushButton::hover
{
	background-color: #54aad3;
	border: 1px solid #46a2da;

}


QPushButton::pressed
{
	background-color: #2385b4;
	border: 1px solid #46a2da;

}


QPushButton::checked
{
	background-color: #bd5355;
	border: 1px solid #bd5355;

}


/*-----QLineEdit-----*/
QLineEdit
{
	background-color: #242424;
	color : #fff;
	border: 1px solid #1d1d1d;
	padding: 3px;
	padding-left: 5px;
	border-radius: 4px;

}


/*-----QPlainTExtEdit-----*/
QPlainTextEdit
{
	background-color: #242424;
	color : #fff;
	border: 1px solid #1d1d1d;
	padding: 3px;
	padding-left: 5px;
	border-radius: 4px;

}


/*-----QToolBox-----*/
QToolBox
{
	background-color: transparent;
	border: 1px solid #1d1d1d;

}


QToolBox::tab
{
	background-color: #002b2b;
	border: 1px solid #1d1d1d;

}


QToolBox::tab:hover
{
	background-color: #006d6d;
	border: 1px solid #1d1d1d;

}


/*-----QComboBox-----*/
QComboBox
{
    background-color: #4a5157;
    padding-left: 6px;
    color: #fff;
    height: 20px;
	border-radius: 4px;

}


QComboBox::disabled
{
	background-color: #404040;
	color: #656565;
	border-color: #051a39;

}


QComboBox:on
{
    background-color: #4a5157;
	color: #fff;

}


QComboBox QAbstractItemView
{
    background-color: #4a5157;
    color: #fff;
    selection-background-color: #002b2b;
	selection-color: #fff;
    outline: 0;

}


QComboBox::drop-down
{
	background-color: #4a5157;
    subcontrol-origin: padding;
    subcontrol-position: top right;
	border-radius: 4px;
    width: 15px;

}


QComboBox::down-arrow
{
    image: url(://arrow-down.png);
    width: 8px;
    height: 8px;

}


/*-----QDoubleSpinBox & QCalendarWidget-----*/
QDoubleSpinBox,
QCalendarWidget QSpinBox 
{
	background-color: #242424;
	color : #fff;
	border: 1px solid #1d1d1d;
	border-radius: 4px;
	padding: 3px;
	padding-left: 5px;

}


QDoubleSpinBox::up-button, 
QCalendarWidget QSpinBox::up-button
{
	background-color: #4a5157;
    width: 16px; 
	border-top-right-radius: 4px;
    border-width: 1px;
	border-color: #1d1d1d;

}


QDoubleSpinBox::up-button:hover, 
QCalendarWidget QSpinBox::up-button:hover
{
	background-color: #585858;

}


QDoubleSpinBox::up-button:pressed, 
QCalendarWidget QSpinBox::up-button:pressed
{
	background-color: #252525;
    width: 16px; 
    border-width: 1px;

}


QDoubleSpinBox::up-arrow,
QCalendarWidget QSpinBox::up-arrow
{
    image: url(://arrow-up.png);
    width: 7px;
    height: 7px;

}


QDoubleSpinBox::down-button, 
QCalendarWidget QSpinBox::down-button
{
	background-color: #4a5157;
    width: 16px; 
    border-width: 1px;
	border-bottom-right-radius: 4px;
	border-color: #1d1d1d;

}


QDoubleSpinBox::down-button:hover, 
QCalendarWidget QSpinBox::down-button:hover
{
	background-color: #585858;

}


QDoubleSpinBox::down-button:pressed, 
QCalendarWidget QSpinBox::down-button:pressed
{
	background-color: #252525;
    width: 16px; 
    border-width: 1px;

}


QDoubleSpinBox::down-arrow,
QCalendarWidget QSpinBox::down-arrow
{
    image: url(://arrow-down.png);
    width: 7px;
    height: 7px;

}


/*-----QGroupBox-----*/
QGroupBox 
{
    border: 1px solid;
    border-color: #1d1d1d;
	border-radius: 4px;
    margin-top: 23px;

}


QGroupBox::title  
{
    background-color: #002b2b;
    color: #fff;
	subcontrol-position: top left;
    subcontrol-origin: margin;
    padding: 5px;
	min-width: 100px;
	border: 1px solid #1d1d1d;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	border-bottom: none;

}


/*-----QHeaderView-----*/
QHeaderView::section
{
    background-color: #4a5157;
	border: none;
    color: #fff;
	padding: 4px;
	
}


QHeaderView::section:disabled
{
    background-color: #525251;
    color: #656565;

}


QHeaderView::section:checked
{
    background-color: qlineargradient(spread:repeat, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(227, 227, 227, 255),stop:1 rgba(187, 187, 187, 255));
    color: #000;

}


QHeaderView::section::vertical::first,
QHeaderView::section::vertical::only-one
{
    border-left: 1px solid #003333;

}


QHeaderView::section::vertical
{
    border-left: 1px solid #003333;
}


QHeaderView::section::horizontal::first,
QHeaderView::section::horizontal::only-one
{
    border-left: 1px solid #003333;

}


QHeaderView::section::horizontal
{
    border-left: 1px solid #003333;

}


QTableCornerButton::section
{
    background-color: qlineargradient(spread:repeat, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(227, 227, 227, 255),stop:1 rgba(187, 187, 187, 255));
	border: 1px solid #000;
    color: #fff;

}


/*-----QCalendarWidget-----*/
QCalendarWidget QToolButton
{
  	background-color: transparent;
  	color: white;

}


QCalendarWidget QToolButton::hover
{
	background-color: #006666;
	border: 1px solid #006666;
	color: #fff;

}


QCalendarWidget QMenu 
{
	width: 120px;
	left: 20px;
	color: white;

}


QCalendarWidget QWidget 
{ 
	alternate-background-color: #4a5157; 
	color: #fff;

}


QCalendarWidget QAbstractItemView:enabled 
{
	color: #fff;  
	background-color: #242424;  
	selection-background-color: #002b2b; 
	selection-color: #fff; 

}


QCalendarWidget QAbstractItemView:disabled 
{ 
	color: #404040; 

}


/*-----QTreeWidget-----*/
QTreeView
{
	show-decoration-selected: 0;
	alternate-background-color: transparent;
	background-color: transparent;
   	border: none;
	color: #fff;
	font: 8pt;

}


QTreeView::item:selected
{
	color:#fff;
	background-color: #002b2b;
	border-radius: 0px;

}


QTreeView::item:!selected:hover
{
    background-color: #5e5e5e;
    border: none;
    color: white;

}


QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings 
{
	image: url(://tree-closed.png);

}


QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings  
{
	image: url(://tree-open.png);

}


/*-----QListView-----*/
QListView 
{
	background-color: transparent;
	alternate-background-color: transparent;
    border : none;
    color: #fff;
    show-decoration-selected: 1; 
    outline: 0;
   	border: 1px solid #1d1d1d;

}


QListView::disabled 
{
	background-color: #656565;
	color: #1b1b1b;
    border: 1px solid #656565;

}


QListView::item 
{
	background-color: transparent;
    padding: 1px;

}


QListView::item:selected 
{
	background-color: #002b2b;
	border: 1px solid #002b2b;
	color: #fff;

}


QListView::item:selected:!active 
{
	background-color: #002b2b;
	border: 1px solid #002b2b;
	color: #fff;

}


QListView::item:selected:active 
{
	background-color: #002b2b;
	border: 1px solid #002b2b;
	color: #fff;

}


QListView::item:hover {
    background-color: #5e5e5e;
    border: none;
    color: #000;

}


/*-----QCheckBox-----*/
QCheckBox
{
	background-color: transparent;
    color: #fff;
	border: none;

}


QCheckBox::indicator
{
    background-color: lightgray;
    border: 1px solid #000;
    width: 12px;
    height: 12px;

}


QCheckBox::indicator:checked
{
    image:url("./ressources/check.png");
	background-color: #002b2b;
    border: 1px solid #3a546e;

}


QCheckBox::indicator:unchecked:hover
{
	border: 1px solid #46a2da; 

}


QCheckBox::disabled
{
	color: #656565;

}


QCheckBox::indicator:disabled
{
	background-color: #656565;
	color: #656565;
    border: 1px solid #656565;

}


/*-----QRadioButton-----*/
QRadioButton 
{
	color: #fff;
	background-color: transparent;

}


QRadioButton::indicator::unchecked:hover 
{
	background-color: #d3d3d3;
	border: 2px solid #002b2b;
	border-radius: 6px;
}


QRadioButton::indicator::checked 
{
	border: 2px solid #52beff;
	border-radius: 6px;
	background-color: #002b2b;  
	width: 9px; 
	height: 9px; 

}


/*-----QScrollBar-----*/
QScrollBar:vertical 
{
   border: none;
   width: 12px;

}


QScrollBar::handle:vertical 
{
   border: none;
   border-radius : 0px;
   background-color: #7a7a7a;
   min-height: 80px;
   width : 12px;

}


QScrollBar::handle:vertical:pressed
{
   background-color: #5d5f60; 

}


QScrollBar::add-line:vertical
{
   border: none;
   background: transparent;
   height: 0px;
   subcontrol-position: bottom;
   subcontrol-origin: margin;

}


QScrollBar::add-line:vertical:hover 
{
   background-color: transparent;

}


QScrollBar::add-line:vertical:pressed 
{
   background-color: #3f3f3f;

}


QScrollBar::sub-line:vertical
{
   border: none;
   background: transparent;
   height: 0px;

}


QScrollBar::sub-line:vertical:hover 
{
   background-color: transparent;

}


QScrollBar::sub-line:vertical:pressed 
{
   background-color: #3f3f3f;

}


QScrollBar::up-arrow:vertical
{
   width: 0px;
   height: 0px;
   background: transparent;

}


QScrollBar::down-arrow:vertical 
{
   width: 0px;
   height: 0px;
   background: transparent;

}


QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
{
   background-color: #222222;
	
}


QScrollBar:horizontal 
{
   border: none;
   height: 12px;

}


QScrollBar::handle:horizontal 
{
   border: none;
   border-radius : 0px;
   background-color: #7a7a7a;
   min-height: 80px;
   height : 12px;

}


QScrollBar::handle:horizontal:pressed
{
   background-color: #5d5f60; 

}


QScrollBar::add-line:horizontal
{
   border: none;
   background: transparent;
   height: 0px;
   subcontrol-position: bottom;
   subcontrol-origin: margin;

}


QScrollBar::add-line:horizontal:hover 
{
   background-color: transparent;

}


QScrollBar::add-line:horizontal:pressed 
{
   background-color: #3f3f3f;

}


QScrollBar::sub-line:horizontal
{
   border: none;
   background: transparent;
   height: 0px;

}


QScrollBar::sub-line:horizontal:hover 
{
   background-color: transparent;

}


QScrollBar::sub-line:horizontal:pressed 
{
   background-color: #3f3f3f;

}


QScrollBar::up-arrow:horizontal
{
   width: 0px;
   height: 0px;
   background: transparent;

}


QScrollBar::down-arrow:horizontal 
{
   width: 0px;
   height: 0px;
   background: transparent;

}


QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
{
   background-color: #222222;
	
}


/*-----QProgressBar-----*/
QProgressBar
{
	border: 1px solid #1d1d1d;
    text-align: center;
	border-radius: 10px;
	color: #fff;
	font-weight: bold;

}


QProgressBar::chunk
{
    background-color: #3b86ae;
	border-radius: 9px;
    margin: 0.5px;

}


/*-----QStatusBar-----*/
QStatusBar
{
	background-color: #4a5157;
	color: #ffffff;
	border-color: #051a39;

}


/*-----QSizeGrip-----*/
QSizeGrip 
{
	background-color: image("./ressources/sizegrip.png"); /*To replace*/
	border: none;

}


"""


flag1=None
def main(deger):
    MesajUyarisi1 = QDialog()

    def accept():
        #print("b")
        global flag1
        flag1= True
        MesajUyarisi1.deleteLater()
        return flag1



    def reject():
        #print("a")
        global flag1
        flag1 = False
        MesajUyarisi1.deleteLater()
        return flag1



    def EminMisiniz(deger):
        MesajUyarisi1.setGeometry(600, 280, 518, 224)
        MesajUyarisi1.setMaximumSize(518, 224)
        MesajUyarisi1.setMinimumSize(518, 224)
        MesajUyarisi1.setWindowIcon(QIcon('images/icon.png'))
        MesajUyarisi1.setWindowFlags(Qt.FramelessWindowHint)
        MesajUyarisi1.setAttribute(Qt.WA_TranslucentBackground)
        MesajUyarisi1.setModal(True)
        MesajUyarisi1.setStyleSheet(css)
        verticalLayout_6 = QtWidgets.QVBoxLayout(MesajUyarisi1)
        verticalLayout_6.setContentsMargins(0, 0, 0, 0)
        verticalLayout_6.setObjectName("verticalLayout_6")
        frame_2 = QtWidgets.QFrame(MesajUyarisi1)
        frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        frame_2.setObjectName("frame_2")
        verticalLayout_7 = QtWidgets.QVBoxLayout(frame_2)
        verticalLayout_7.setContentsMargins(0, 0, 0, 0)
        verticalLayout_7.setObjectName("verticalLayout_7")
        frame_title_2 = QtWidgets.QFrame(frame_2)
        frame_title_2.setMaximumSize(QtCore.QSize(16777215, 40))
        frame_title_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        frame_title_2.setFrameShadow(QtWidgets.QFrame.Raised)
        frame_title_2.setObjectName("frame_title_2")
        frame_title_2.setStyleSheet("")
        horizontalLayout_5 = QtWidgets.QHBoxLayout(frame_title_2)
        horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
        horizontalLayout_5.setObjectName("horizontalLayout_5")
        frame_7 = QtWidgets.QFrame(frame_title_2)
        frame_7.setFrameShape(QtWidgets.QFrame.StyledPanel)
        frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        frame_7=DragWidget()##########################################
        frame_7.setObjectName("frame_7")
        label_title_3 = QtWidgets.QLabel(frame_7)
        label_title_3.setGeometry(QtCore.QRect(12, -8, 405, 50))
        font = QtGui.QFont()
        font.setFamily("Roboto")
        font.setPointSize(14)
        label_title_3.setFont(font)
        label_title_3.setStyleSheet("color: rgb(60, 231, 195);")
        label_title_3.setObjectName("label_title_3")
        horizontalLayout_5.addWidget(frame_7)
        frame_6 = QtWidgets.QFrame(frame_title_2)
        frame_6.setMinimumSize(QtCore.QSize(70, 0))
        frame_6.setMaximumSize(QtCore.QSize(60, 16777215))
        frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
        frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        frame_6.setObjectName("frame_6")
        horizontalLayout_6 = QtWidgets.QHBoxLayout(frame_6)
        horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
        horizontalLayout_6.setObjectName("horizontalLayout_6")
        btn_close_3 = QtWidgets.QPushButton(frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(btn_close_3.sizePolicy().hasHeightForWidth())
        btn_close_3.setSizePolicy(sizePolicy)
        btn_close_3.setMinimumSize(QtCore.QSize(30, 0))
        btn_close_3.setMaximumSize(QtCore.QSize(10, 16777215))
        btn_close_3.setStyleSheet(
            "QPushButton {    \n""    border: none;\n""    background-color: transparent;\n""}\n""QPushButton:hover {\n""    background-color: rgb(52, 59, 72);\n""}\n""QPushButton:pressed {    \n""    background-color: rgb(85, 170, 255);\n""}")
        btn_close_3.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/16x16/icons/16x16/cil-x.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        btn_close_3.setIcon(icon)
        btn_close_3.setObjectName("btn_close_3")
        btn_close_3.clicked.connect(MesajUyarisi1.close)
        horizontalLayout_6.addWidget(btn_close_3)
        horizontalLayout_5.addWidget(frame_6)
        verticalLayout_7.addWidget(frame_title_2)
        frame_5 = QtWidgets.QFrame(frame_2)
        frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
        frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        frame_5.setObjectName("frame_5")
        label_2 = QtWidgets.QLabel(frame_5)
        label_2.setGeometry(QtCore.QRect(26, 16, 71, 77))
        label_2.setText("")
        label_2.setPixmap(QtGui.QPixmap("images/question.png"))
        label_2.setObjectName("label_2")
        mustsil_lbl2_2 = QtWidgets.QLabel(frame_5)
        mustsil_lbl2_2.setGeometry(QtCore.QRect(112, -14, 391, 107))
        font = QtGui.QFont()
        font.setPointSize(15)
        font.setBold(True)
        font.setWeight(75)
        mustsil_lbl2_2.setFont(font)
        mustsil_lbl2_2.setStyleSheet("color: rgb(60, 231, 195);font:bold 12px;")
        mustsil_lbl2_2.setObjectName("mustsil_lbl2_2")
        buttonBox = QtWidgets.QDialogButtonBox(frame_5)
        buttonBox.setGeometry(QtCore.QRect(272, 112, 231, 57))
        buttonBox.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;    \n""    background-color: rgb(85, 255, 127);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(85, 255, 127, 150);\n""}\n""QPushButton:pressed {\n""background-color: rgb(10, 215, 255);\n""  border: 1px solid #19232D;\n""}\n""\n""QPushButton:pressed:hover {\n""  border: 1px solid #148CD2;\n""}color:black;")
        buttonBox.setOrientation(QtCore.Qt.Horizontal)
        buttonBox.addButton(QDialogButtonBox.Ok).setText("Evet")
        buttonBox.addButton(QDialogButtonBox.Cancel).setText("Hayır")
        buttonBox.setObjectName("buttonBox")
        verticalLayout_7.addWidget(frame_5)
        verticalLayout_6.addWidget(frame_2)

        _translate = QtCore.QCoreApplication.translate
        MesajUyarisi1.setWindowTitle(_translate("Dialog", "Dialog"))
        label_title_3.setText(_translate("Dialog", "Emin misiniz"))
        btn_close_3.setToolTip(_translate("Dialog", "Close"))
        mustsil_lbl2_2.setText(_translate("Dialog", deger))
        MesajUyarisi1.show()
        buttonBox.accepted.connect(accept)
        buttonBox.rejected.connect(reject)





    EminMisiniz(deger)
    MesajUyarisi1.exec_()
    #print(flag1)
    return flag1
def BasariliUyari(DEGER):
    MesajUyarisi1 = QDialog()
    MesajUyarisi1.setGeometry(600, 280, 545, 206)
    MesajUyarisi1.setMaximumSize(545, 286)
    MesajUyarisi1.setMinimumSize(545, 286)
    MesajUyarisi1.setWindowIcon(QIcon('images/icon.png'))
    MesajUyarisi1.setWindowFlags(Qt.FramelessWindowHint)
    MesajUyarisi1.setAttribute(Qt.WA_TranslucentBackground)
    MesajUyarisi1.setModal(True)

    drop_shadow_layout = QtWidgets.QVBoxLayout(MesajUyarisi1)
    drop_shadow_layout.setContentsMargins(10, 10, 10, 10)
    drop_shadow_layout.setSpacing(0)
    drop_shadow_layout.setObjectName("drop_shadow_layout")
    drop_shadow_frame = QtWidgets.QFrame(MesajUyarisi1)
    drop_shadow_frame.setStyleSheet("background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(42, 44, 111, 255), stop:0.521368 rgba(28, 29, 73, 255));\n""border-radius: 10px;")
    drop_shadow_frame.setFrameShape(QtWidgets.QFrame.NoFrame)
    drop_shadow_frame.setFrameShadow(QtWidgets.QFrame.Raised)
    drop_shadow_frame.setObjectName("drop_shadow_frame")
    verticalLayout = QtWidgets.QVBoxLayout(drop_shadow_frame)
    verticalLayout.setContentsMargins(0, 0, 0, 0)
    verticalLayout.setSpacing(0)
    verticalLayout.setObjectName("verticalLayout")
    title_bar = QtWidgets.QFrame(drop_shadow_frame)
    title_bar = DragWidget(drop_shadow_frame)
    title_bar.setMaximumSize(QtCore.QSize(16777215, 50))
    title_bar.setStyleSheet("background-color: none;")
    title_bar.setStyleSheet("")

    title_bar.setFrameShape(QtWidgets.QFrame.NoFrame)
    title_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    title_bar.setObjectName("title_bar")
    horizontalLayout = QtWidgets.QHBoxLayout(title_bar)
    horizontalLayout.setContentsMargins(0, 0, 0, 0)
    horizontalLayout.setSpacing(0)
    horizontalLayout.setObjectName("horizontalLayout")
    frame_title = QtWidgets.QFrame(title_bar)
    frame_title.setMinimumSize(QtCore.QSize(0, 50))
    font = QtGui.QFont()
    font.setFamily("Roboto Condensed Light")
    font.setPointSize(14)
    frame_title.setFont(font)
    frame_title.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_title.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_title.setObjectName("frame_title")
    verticalLayout_2 = QtWidgets.QVBoxLayout(frame_title)
    verticalLayout_2.setContentsMargins(15, 0, 0, 0)
    verticalLayout_2.setSpacing(0)
    verticalLayout_2.setObjectName("verticalLayout_2")
    label_title = QtWidgets.QLabel(frame_title)
    font = QtGui.QFont()
    font.setFamily("Roboto")
    font.setPointSize(14)
    label_title.setFont(font)
    label_title.setStyleSheet("color: rgb(60, 231, 195);")
    label_title.setObjectName("label_title")
    verticalLayout_2.addWidget(label_title)
    horizontalLayout.addWidget(frame_title)
    frame_btns = QtWidgets.QFrame(title_bar)
    frame_btns.setMaximumSize(QtCore.QSize(100, 16777215))
    frame_btns.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_btns.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_btns.setObjectName("frame_btns")
    horizontalLayout_3 = QtWidgets.QHBoxLayout(frame_btns)
    horizontalLayout_3.setObjectName("horizontalLayout_3")
    btn_minimize = QtWidgets.QPushButton(frame_btns)
    btn_minimize.setMinimumSize(QtCore.QSize(16, 16))
    btn_minimize.setMaximumSize(QtCore.QSize(17, 17))
    btn_minimize.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;        \n""    background-color: rgb(255, 170, 0);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(255, 170, 0, 150);\n""}")
    btn_minimize.setText("")
    btn_minimize.setObjectName("btn_minimize")
    horizontalLayout_3.addWidget(btn_minimize)
    btn_maximize = QtWidgets.QPushButton(frame_btns)
    btn_maximize.setMinimumSize(QtCore.QSize(16, 16))
    btn_maximize.setMaximumSize(QtCore.QSize(17, 17))
    btn_maximize.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;    \n""    background-color: rgb(85, 255, 127);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(85, 255, 127, 150);\n""}")
    btn_maximize.setText("")
    btn_maximize.setObjectName("btn_maximize")
    horizontalLayout_3.addWidget(btn_maximize)
    btn_close = QtWidgets.QPushButton(frame_btns)
    btn_close.setMinimumSize(QtCore.QSize(16, 16))
    btn_close.setMaximumSize(QtCore.QSize(17, 17))
    btn_close.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;        \n""    background-color: rgb(255, 0, 0);\n""}\n""QPushButton:hover {        \n""    background-color: rgba(255, 0, 0, 150);\n""}")
    btn_close.setText("")
    btn_close.setObjectName("btn_close")
    horizontalLayout_3.addWidget(btn_close)
    horizontalLayout.addWidget(frame_btns)
    verticalLayout.addWidget(title_bar)
    content_bar = QtWidgets.QFrame(drop_shadow_frame)
    content_bar.setStyleSheet("background-color: none;")
    content_bar.setFrameShape(QtWidgets.QFrame.StyledPanel)
    content_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    content_bar.setObjectName("content_bar")
    verticalLayout_4 = QtWidgets.QVBoxLayout(content_bar)
    verticalLayout_4.setObjectName("verticalLayout_4")
    frame = QtWidgets.QFrame(content_bar)
    frame.setStyleSheet("QPlainTextEdit {\n""  background-color: #19232D;\n""  color: #F0F0F0;\n""  border-radius: 4px;\n""  border: 1px solid #32414B;\n""}\n""\n""\n""QPlainTextEdit:focus {\n""  border: 1px solid #1464A0;\n""}\n""\n""\n""QPlainTextEdit:selected {\n""  background: #1464A0;\n""  color: #32414B;\n""}")
    frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame.setFrameShadow(QtWidgets.QFrame.Raised)
    frame.setObjectName("frame")
    mustsil_lbl2 = QtWidgets.QLabel(frame)
    mustsil_lbl2.setGeometry(QtCore.QRect(100, 0, 391, 101))
    font = QtGui.QFont()
    mustsil_lbl2.setFont(font)
    mustsil_lbl2.setStyleSheet("color: rgb(60, 231, 195);font:bold 17px;")
    mustsil_lbl2.setObjectName("mustsil_lbl2")
    pushButton = QtWidgets.QPushButton(frame)
    pushButton.setGeometry(QtCore.QRect(410, 130, 91, 31))
    pushButton.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;    \n""    background-color: rgb(85, 255, 127);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(85, 255, 127, 150);\n""}\n""QPushButton:pressed {\n""background-color: rgb(10, 215, 255);\n""  border: 1px solid #19232D;\n""}\n""\n""QPushButton:pressed:hover {\n""  border: 1px solid #148CD2;\n""}")
    pushButton.setObjectName("pushButton")
    label = QtWidgets.QLabel(frame)
    label.setGeometry(QtCore.QRect(10, 40, 71, 71))
    label.setText("")
    label.setPixmap(QtGui.QPixmap("images/checked.png"))
    label.setObjectName("label")
    verticalLayout_4.addWidget(frame)
    verticalLayout.addWidget(content_bar)
    credits_bar = QtWidgets.QFrame(drop_shadow_frame)
    credits_bar.setMaximumSize(QtCore.QSize(16777215, 30))
    credits_bar.setStyleSheet("background-color: rgb(33, 33, 75);")
    credits_bar.setFrameShape(QtWidgets.QFrame.NoFrame)
    credits_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    credits_bar.setObjectName("credits_bar")
    horizontalLayout_2 = QtWidgets.QHBoxLayout(credits_bar)
    horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
    horizontalLayout_2.setSpacing(0)
    horizontalLayout_2.setObjectName("horizontalLayout_2")
    frame_label_credits = QtWidgets.QFrame(credits_bar)
    frame_label_credits.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_label_credits.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_label_credits.setObjectName("frame_label_credits")
    verticalLayout_3 = QtWidgets.QVBoxLayout(frame_label_credits)
    verticalLayout_3.setContentsMargins(15, 0, 0, 0)
    verticalLayout_3.setSpacing(0)
    verticalLayout_3.setObjectName("verticalLayout_3")
    label_credits = QtWidgets.QLabel(frame_label_credits)
    font = QtGui.QFont()
    font.setFamily("Roboto")
    label_credits.setFont(font)
    label_credits.setStyleSheet("color: rgb(128, 102, 168);")
    label_credits.setObjectName("label_credits")
    verticalLayout_3.addWidget(label_credits)
    horizontalLayout_2.addWidget(frame_label_credits)
    frame_grip = QtWidgets.QFrame(credits_bar)
    frame_grip.setMinimumSize(QtCore.QSize(30, 30))
    frame_grip.setMaximumSize(QtCore.QSize(30, 30))
    frame_grip.setStyleSheet("padding: 5px;")
    frame_grip.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_grip.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_grip.setObjectName("frame_grip")
    horizontalLayout_2.addWidget(frame_grip)
    verticalLayout.addWidget(credits_bar)
    drop_shadow_layout.addWidget(drop_shadow_frame)
    btn_minimize.clicked.connect(MesajUyarisi1.showMinimized)
    btn_close.clicked.connect(MesajUyarisi1.close)
    pushButton.clicked.connect(MesajUyarisi1.close)
    _translate = QtCore.QCoreApplication.translate
    label_title.setText(_translate("MainWindow", "İşlem Başarı İle Gerçekleşti"))
    btn_minimize.setToolTip(_translate("MainWindow", "Minimize"))
    btn_maximize.setToolTip(_translate("MainWindow", "Maximize"))
    btn_close.setToolTip(_translate("MainWindow", "Close"))
    mustsil_lbl2.setText(_translate("MainWindow", DEGER))
    pushButton.setText(_translate("MainWindow", "Tamam"))
    label_credits.setText(_translate("MainWindow", "Yapımcı: Berkay Şen"))

    MesajUyarisi1.show()
    MesajUyarisi1.exec_()


def SQL(kod):
    connect = sqlite3.connect("veritabani.db")
    cursor = connect.cursor()
    cursor.execute(kod)
    veri = cursor.fetchall()
    connect.commit()
    connect.close()
    return veri


class DragWidget(QFrame):
    startPos = None

    def mousePressEvent(self, event):
        if event.button() == Qt.LeftButton:
            self.startPos = event.pos()

    def mouseMoveEvent(self, event):
        if event.buttons() == Qt.LeftButton and self.startPos is not None:
            delta = event.pos() - self.startPos
            self.window().move(self.window().pos() + delta)

    def mouseReleaseEvent(self, event):
        self.startPos = None


def HataUyarisi(DEGER):
    MesajUyarisi = QDialog()
    MesajUyarisi.setGeometry(600, 280, 545, 206)
    MesajUyarisi.setMaximumSize(545, 286)
    MesajUyarisi.setMinimumSize(545, 286)
    MesajUyarisi.setWindowIcon(QIcon('images/icon.png'))
    MesajUyarisi.setWindowFlags(Qt.FramelessWindowHint)
    MesajUyarisi.setAttribute(Qt.WA_TranslucentBackground)
    MesajUyarisi.setModal(True)
    drop_shadow_layout = QtWidgets.QVBoxLayout(MesajUyarisi)
    drop_shadow_layout.setContentsMargins(10, 10, 10, 10)
    drop_shadow_layout.setSpacing(0)
    drop_shadow_layout.setObjectName("drop_shadow_layout")
    drop_shadow_frame = QtWidgets.QFrame(MesajUyarisi)
    drop_shadow_frame.setStyleSheet("background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(42, 44, 111, 255), stop:0.521368 rgba(28, 29, 73, 255));\n""border-radius: 10px;")
    drop_shadow_frame.setFrameShape(QtWidgets.QFrame.NoFrame)
    drop_shadow_frame.setFrameShadow(QtWidgets.QFrame.Raised)
    drop_shadow_frame.setObjectName("drop_shadow_frame")
    verticalLayout = QtWidgets.QVBoxLayout(drop_shadow_frame)
    verticalLayout.setContentsMargins(0, 0, 0, 0)
    verticalLayout.setSpacing(0)
    verticalLayout.setObjectName("verticalLayout")
    title_bar = QtWidgets.QFrame(drop_shadow_frame)
    title_bar = DragWidget(drop_shadow_frame)
    title_bar.setMaximumSize(QtCore.QSize(16777215, 50))
    title_bar.setStyleSheet("background-color: none;")
    title_bar.setStyleSheet("")
    title_bar.setFrameShape(QtWidgets.QFrame.NoFrame)
    title_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    title_bar.setObjectName("title_bar")
    horizontalLayout = QtWidgets.QHBoxLayout(title_bar)
    horizontalLayout.setContentsMargins(0, 0, 0, 0)
    horizontalLayout.setSpacing(0)
    horizontalLayout.setObjectName("horizontalLayout")
    frame_title = QtWidgets.QFrame(title_bar)
    frame_title.setMinimumSize(QtCore.QSize(0, 50))
    font = QtGui.QFont()
    font.setFamily("Roboto Condensed Light")
    font.setPointSize(14)
    frame_title.setFont(font)
    frame_title.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_title.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_title.setObjectName("frame_title")
    verticalLayout_2 = QtWidgets.QVBoxLayout(frame_title)
    verticalLayout_2.setContentsMargins(15, 0, 0, 0)
    verticalLayout_2.setSpacing(0)
    verticalLayout_2.setObjectName("verticalLayout_2")
    label_title = QtWidgets.QLabel(frame_title)
    font = QtGui.QFont()
    font.setFamily("Roboto")
    font.setPointSize(14)
    label_title.setFont(font)
    label_title.setStyleSheet("color: rgb(60, 231, 195);")
    label_title.setObjectName("label_title")
    verticalLayout_2.addWidget(label_title)
    horizontalLayout.addWidget(frame_title)
    frame_btns = QtWidgets.QFrame(title_bar)
    frame_btns.setMaximumSize(QtCore.QSize(100, 16777215))
    frame_btns.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_btns.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_btns.setObjectName("frame_btns")
    horizontalLayout_3 = QtWidgets.QHBoxLayout(frame_btns)
    horizontalLayout_3.setObjectName("horizontalLayout_3")
    btn_minimize = QtWidgets.QPushButton(frame_btns)
    btn_minimize.setMinimumSize(QtCore.QSize(16, 16))
    btn_minimize.setMaximumSize(QtCore.QSize(17, 17))
    btn_minimize.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;        \n""    background-color: rgb(255, 170, 0);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(255, 170, 0, 150);\n""}")
    btn_minimize.setText("")
    btn_minimize.setObjectName("btn_minimize")
    horizontalLayout_3.addWidget(btn_minimize)
    btn_maximize = QtWidgets.QPushButton(frame_btns)
    btn_maximize.setMinimumSize(QtCore.QSize(16, 16))
    btn_maximize.setMaximumSize(QtCore.QSize(17, 17))
    btn_maximize.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;    \n""    background-color: rgb(85, 255, 127);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(85, 255, 127, 150);\n""}")
    btn_maximize.setText("")
    btn_maximize.setObjectName("btn_maximize")
    horizontalLayout_3.addWidget(btn_maximize)
    btn_close = QtWidgets.QPushButton(frame_btns)
    btn_close.setMinimumSize(QtCore.QSize(16, 16))
    btn_close.setMaximumSize(QtCore.QSize(17, 17))
    btn_close.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;        \n""    background-color: rgb(255, 0, 0);\n""}\n""QPushButton:hover {        \n""    background-color: rgba(255, 0, 0, 150);\n""}")
    btn_close.setText("")
    btn_close.setObjectName("btn_close")
    horizontalLayout_3.addWidget(btn_close)
    horizontalLayout.addWidget(frame_btns)
    verticalLayout.addWidget(title_bar)
    content_bar = QtWidgets.QFrame(drop_shadow_frame)
    content_bar.setStyleSheet("background-color: none;")
    content_bar.setFrameShape(QtWidgets.QFrame.StyledPanel)
    content_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    content_bar.setObjectName("content_bar")
    verticalLayout_4 = QtWidgets.QVBoxLayout(content_bar)
    verticalLayout_4.setObjectName("verticalLayout_4")
    frame = QtWidgets.QFrame(content_bar)
    frame.setStyleSheet("QPlainTextEdit {\n""  background-color: #19232D;\n""  color: #F0F0F0;\n""  border-radius: 4px;\n""  border: 1px solid #32414B;\n""}\n""\n""\n""QPlainTextEdit:focus {\n""  border: 1px solid #1464A0;\n""}\n""\n""\n""QPlainTextEdit:selected {\n""  background: #1464A0;\n""  color: #32414B;\n""}")
    frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame.setFrameShadow(QtWidgets.QFrame.Raised)
    frame.setObjectName("frame")
    mustsil_lbl2 = QtWidgets.QLabel(frame)
    mustsil_lbl2.setGeometry(QtCore.QRect(100, 0, 391, 101))
    font = QtGui.QFont()
    mustsil_lbl2.setFont(font)
    mustsil_lbl2.setStyleSheet("color: rgb(60, 231, 195);font:bold 17px;")
    mustsil_lbl2.setObjectName("mustsil_lbl2")
    pushButton = QtWidgets.QPushButton(frame)
    pushButton.setGeometry(QtCore.QRect(410, 130, 91, 31))
    pushButton.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;    \n""    background-color: rgb(85, 255, 127);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(85, 255, 127, 150);\n""}\n""QPushButton:pressed {\n""background-color: rgb(10, 215, 255);\n""  border: 1px solid #19232D;\n""}\n""\n""QPushButton:pressed:hover {\n""  border: 1px solid #148CD2;\n""}")
    pushButton.setObjectName("pushButton")
    label = QtWidgets.QLabel(frame)
    label.setGeometry(QtCore.QRect(10, 40, 71, 71))
    label.setText("")
    label.setPixmap(QtGui.QPixmap("images/warning.png"))
    label.setObjectName("label")
    verticalLayout_4.addWidget(frame)
    verticalLayout.addWidget(content_bar)
    credits_bar = QtWidgets.QFrame(drop_shadow_frame)
    credits_bar.setMaximumSize(QtCore.QSize(16777215, 30))
    credits_bar.setStyleSheet("background-color: rgb(33, 33, 75);")
    credits_bar.setFrameShape(QtWidgets.QFrame.NoFrame)
    credits_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    credits_bar.setObjectName("credits_bar")
    horizontalLayout_2 = QtWidgets.QHBoxLayout(credits_bar)
    horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
    horizontalLayout_2.setSpacing(0)
    horizontalLayout_2.setObjectName("horizontalLayout_2")
    frame_label_credits = QtWidgets.QFrame(credits_bar)
    frame_label_credits.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_label_credits.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_label_credits.setObjectName("frame_label_credits")
    verticalLayout_3 = QtWidgets.QVBoxLayout(frame_label_credits)
    verticalLayout_3.setContentsMargins(15, 0, 0, 0)
    verticalLayout_3.setSpacing(0)
    verticalLayout_3.setObjectName("verticalLayout_3")
    label_credits = QtWidgets.QLabel(frame_label_credits)
    font = QtGui.QFont()
    font.setFamily("Roboto")
    label_credits.setFont(font)
    label_credits.setStyleSheet("color: rgb(128, 102, 168);")
    label_credits.setObjectName("label_credits")
    verticalLayout_3.addWidget(label_credits)
    horizontalLayout_2.addWidget(frame_label_credits)
    frame_grip = QtWidgets.QFrame(credits_bar)
    frame_grip.setMinimumSize(QtCore.QSize(30, 30))
    frame_grip.setMaximumSize(QtCore.QSize(30, 30))
    frame_grip.setStyleSheet("padding: 5px;")
    frame_grip.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_grip.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_grip.setObjectName("frame_grip")
    horizontalLayout_2.addWidget(frame_grip)
    verticalLayout.addWidget(credits_bar)
    drop_shadow_layout.addWidget(drop_shadow_frame)

    btn_minimize.clicked.connect(MesajUyarisi.showMinimized)
    btn_close.clicked.connect(MesajUyarisi.close)
    pushButton.clicked.connect(MesajUyarisi.close)
    _translate = QtCore.QCoreApplication.translate
    label_title.setText(_translate("MainWindow", "Hata Oluştu"))
    btn_minimize.setToolTip(_translate("MainWindow", "Minimize"))
    btn_maximize.setToolTip(_translate("MainWindow", "Maximize"))
    btn_close.setToolTip(_translate("MainWindow", "Close"))
    mustsil_lbl2.setText(_translate("MainWindow", DEGER))
    pushButton.setText(_translate("MainWindow", "Tamam"))
    label_credits.setText(_translate("MainWindow", "Yapımcı: Berkay Şen"))
    MesajUyarisi.show()
    MesajUyarisi.exec_()



from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
import sqlite3
css=""" 
/*Copyright (c) DevSec Studio. All rights reserved.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

/*-----QWidget-----*/
QWidget
{
	background-color: #242424;
	color: #fff;
	selection-background-color: #fff;
	selection-color: #000;

}


/*-----QLabel-----*/
QLabel
{
	background-color: transparent;
	color: #fff;

}


/*-----QMenuBar-----*/
QMenuBar 
{
	background-color: #4a5157;
	color: #fff;

}


QMenuBar::item 
{
	background-color: transparent;
	border-left: 1px solid #003333;
	padding: 5px;
	padding-left: 15px;
	padding-right: 15px;

}


QMenuBar::item:selected 
{
	background-color: #003333;
	border: 1px solid #006666;
	color: #fff;

}


QMenuBar::item:pressed 
{
	background-color: #006666;
	border: 1px solid #006666;
	color: #fff;

}


/*-----QMenu-----*/
QMenu
{
    background-color: #4a5157;
    border: 1px solid #4a5157;
    padding: 10px;
	color: #fff;

}


QMenu::item
{
    background-color: transparent;
    padding: 2px 20px 2px 20px;
	min-width: 200px;

}


QMenu::separator
{
   	background-color: #242424;
	height: 1px;

}


QMenu::item:disabled
{
    color: #555;
    background-color: transparent;
    padding: 2px 20px 2px 20px;

}


QMenu::item:selected
{
	background-color: #003333;
	border: 1px solid #006666;
	color: #fff;

}


/*-----QToolButton-----*/
QToolButton 
{
	background-color: transparent;
	color: #fff;
	padding: 3px;
	margin-left: 1px;
}


QToolButton:hover
{
	background-color: rgba(70,162,218,50%);
	border: 1px solid #46a2da;
	color: #000;
	
}


QToolButton:pressed
{
	background-color: #727272;
	border: 1px solid #46a2da;

}


QToolButton:checked
{
	background-color: #727272;
	border: 1px solid #222;
}


/*-----QPushButton-----*/
QPushButton
{
	background-color: #4891b4;
	color: #fff;
	min-width: 80px;
	border-radius: 4px;
	padding: 5px;

}


QPushButton::flat
{
	background-color: transparent;
	border: none;
	color: #000;

}


QPushButton::disabled
{
	background-color: #606060;
	color: #959595;
	border-color: #051a39;

}


QPushButton::hover
{
	background-color: #54aad3;
	border: 1px solid #46a2da;

}


QPushButton::pressed
{
	background-color: #2385b4;
	border: 1px solid #46a2da;

}


QPushButton::checked
{
	background-color: #bd5355;
	border: 1px solid #bd5355;

}


/*-----QLineEdit-----*/
QLineEdit
{
	background-color: #242424;
	color : #fff;
	border: 1px solid #1d1d1d;
	padding: 3px;
	padding-left: 5px;
	border-radius: 4px;

}


/*-----QPlainTExtEdit-----*/
QPlainTextEdit
{
	background-color: #242424;
	color : #fff;
	border: 1px solid #1d1d1d;
	padding: 3px;
	padding-left: 5px;
	border-radius: 4px;

}


/*-----QToolBox-----*/
QToolBox
{
	background-color: transparent;
	border: 1px solid #1d1d1d;

}


QToolBox::tab
{
	background-color: #002b2b;
	border: 1px solid #1d1d1d;

}


QToolBox::tab:hover
{
	background-color: #006d6d;
	border: 1px solid #1d1d1d;

}


/*-----QComboBox-----*/
QComboBox
{
    background-color: #4a5157;
    padding-left: 6px;
    color: #fff;
    height: 20px;
	border-radius: 4px;

}


QComboBox::disabled
{
	background-color: #404040;
	color: #656565;
	border-color: #051a39;

}


QComboBox:on
{
    background-color: #4a5157;
	color: #fff;

}


QComboBox QAbstractItemView
{
    background-color: #4a5157;
    color: #fff;
    selection-background-color: #002b2b;
	selection-color: #fff;
    outline: 0;

}


QComboBox::drop-down
{
	background-color: #4a5157;
    subcontrol-origin: padding;
    subcontrol-position: top right;
	border-radius: 4px;
    width: 15px;

}


QComboBox::down-arrow
{
    image: url(://arrow-down.png);
    width: 8px;
    height: 8px;

}


/*-----QDoubleSpinBox & QCalendarWidget-----*/
QDoubleSpinBox,
QCalendarWidget QSpinBox 
{
	background-color: #242424;
	color : #fff;
	border: 1px solid #1d1d1d;
	border-radius: 4px;
	padding: 3px;
	padding-left: 5px;

}


QDoubleSpinBox::up-button, 
QCalendarWidget QSpinBox::up-button
{
	background-color: #4a5157;
    width: 16px; 
	border-top-right-radius: 4px;
    border-width: 1px;
	border-color: #1d1d1d;

}


QDoubleSpinBox::up-button:hover, 
QCalendarWidget QSpinBox::up-button:hover
{
	background-color: #585858;

}


QDoubleSpinBox::up-button:pressed, 
QCalendarWidget QSpinBox::up-button:pressed
{
	background-color: #252525;
    width: 16px; 
    border-width: 1px;

}


QDoubleSpinBox::up-arrow,
QCalendarWidget QSpinBox::up-arrow
{
    image: url(://arrow-up.png);
    width: 7px;
    height: 7px;

}


QDoubleSpinBox::down-button, 
QCalendarWidget QSpinBox::down-button
{
	background-color: #4a5157;
    width: 16px; 
    border-width: 1px;
	border-bottom-right-radius: 4px;
	border-color: #1d1d1d;

}


QDoubleSpinBox::down-button:hover, 
QCalendarWidget QSpinBox::down-button:hover
{
	background-color: #585858;

}


QDoubleSpinBox::down-button:pressed, 
QCalendarWidget QSpinBox::down-button:pressed
{
	background-color: #252525;
    width: 16px; 
    border-width: 1px;

}


QDoubleSpinBox::down-arrow,
QCalendarWidget QSpinBox::down-arrow
{
    image: url(://arrow-down.png);
    width: 7px;
    height: 7px;

}


/*-----QGroupBox-----*/
QGroupBox 
{
    border: 1px solid;
    border-color: #1d1d1d;
	border-radius: 4px;
    margin-top: 23px;

}


QGroupBox::title  
{
    background-color: #002b2b;
    color: #fff;
	subcontrol-position: top left;
    subcontrol-origin: margin;
    padding: 5px;
	min-width: 100px;
	border: 1px solid #1d1d1d;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	border-bottom: none;

}


/*-----QHeaderView-----*/
QHeaderView::section
{
    background-color: #4a5157;
	border: none;
    color: #fff;
	padding: 4px;
	
}


QHeaderView::section:disabled
{
    background-color: #525251;
    color: #656565;

}


QHeaderView::section:checked
{
    background-color: qlineargradient(spread:repeat, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(227, 227, 227, 255),stop:1 rgba(187, 187, 187, 255));
    color: #000;

}


QHeaderView::section::vertical::first,
QHeaderView::section::vertical::only-one
{
    border-left: 1px solid #003333;

}


QHeaderView::section::vertical
{
    border-left: 1px solid #003333;
}


QHeaderView::section::horizontal::first,
QHeaderView::section::horizontal::only-one
{
    border-left: 1px solid #003333;

}


QHeaderView::section::horizontal
{
    border-left: 1px solid #003333;

}


QTableCornerButton::section
{
    background-color: qlineargradient(spread:repeat, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(227, 227, 227, 255),stop:1 rgba(187, 187, 187, 255));
	border: 1px solid #000;
    color: #fff;

}


/*-----QCalendarWidget-----*/
QCalendarWidget QToolButton
{
  	background-color: transparent;
  	color: white;

}


QCalendarWidget QToolButton::hover
{
	background-color: #006666;
	border: 1px solid #006666;
	color: #fff;

}


QCalendarWidget QMenu 
{
	width: 120px;
	left: 20px;
	color: white;

}


QCalendarWidget QWidget 
{ 
	alternate-background-color: #4a5157; 
	color: #fff;

}


QCalendarWidget QAbstractItemView:enabled 
{
	color: #fff;  
	background-color: #242424;  
	selection-background-color: #002b2b; 
	selection-color: #fff; 

}


QCalendarWidget QAbstractItemView:disabled 
{ 
	color: #404040; 

}


/*-----QTreeWidget-----*/
QTreeView
{
	show-decoration-selected: 0;
	alternate-background-color: transparent;
	background-color: transparent;
   	border: none;
	color: #fff;
	font: 8pt;

}


QTreeView::item:selected
{
	color:#fff;
	background-color: #002b2b;
	border-radius: 0px;

}


QTreeView::item:!selected:hover
{
    background-color: #5e5e5e;
    border: none;
    color: white;

}


QTreeView::branch:has-children:!has-siblings:closed,
QTreeView::branch:closed:has-children:has-siblings 
{
	image: url(://tree-closed.png);

}


QTreeView::branch:open:has-children:!has-siblings,
QTreeView::branch:open:has-children:has-siblings  
{
	image: url(://tree-open.png);

}


/*-----QListView-----*/
QListView 
{
	background-color: transparent;
	alternate-background-color: transparent;
    border : none;
    color: #fff;
    show-decoration-selected: 1; 
    outline: 0;
   	border: 1px solid #1d1d1d;

}


QListView::disabled 
{
	background-color: #656565;
	color: #1b1b1b;
    border: 1px solid #656565;

}


QListView::item 
{
	background-color: transparent;
    padding: 1px;

}


QListView::item:selected 
{
	background-color: #002b2b;
	border: 1px solid #002b2b;
	color: #fff;

}


QListView::item:selected:!active 
{
	background-color: #002b2b;
	border: 1px solid #002b2b;
	color: #fff;

}


QListView::item:selected:active 
{
	background-color: #002b2b;
	border: 1px solid #002b2b;
	color: #fff;

}


QListView::item:hover {
    background-color: #5e5e5e;
    border: none;
    color: #000;

}


/*-----QCheckBox-----*/
QCheckBox
{
	background-color: transparent;
    color: #fff;
	border: none;

}


QCheckBox::indicator
{
    background-color: lightgray;
    border: 1px solid #000;
    width: 12px;
    height: 12px;

}


QCheckBox::indicator:checked
{
    image:url("./ressources/check.png");
	background-color: #002b2b;
    border: 1px solid #3a546e;

}


QCheckBox::indicator:unchecked:hover
{
	border: 1px solid #46a2da; 

}


QCheckBox::disabled
{
	color: #656565;

}


QCheckBox::indicator:disabled
{
	background-color: #656565;
	color: #656565;
    border: 1px solid #656565;

}


/*-----QRadioButton-----*/
QRadioButton 
{
	color: #fff;
	background-color: transparent;

}


QRadioButton::indicator::unchecked:hover 
{
	background-color: #d3d3d3;
	border: 2px solid #002b2b;
	border-radius: 6px;
}


QRadioButton::indicator::checked 
{
	border: 2px solid #52beff;
	border-radius: 6px;
	background-color: #002b2b;  
	width: 9px; 
	height: 9px; 

}


/*-----QScrollBar-----*/
QScrollBar:vertical 
{
   border: none;
   width: 12px;

}


QScrollBar::handle:vertical 
{
   border: none;
   border-radius : 0px;
   background-color: #7a7a7a;
   min-height: 80px;
   width : 12px;

}


QScrollBar::handle:vertical:pressed
{
   background-color: #5d5f60; 

}


QScrollBar::add-line:vertical
{
   border: none;
   background: transparent;
   height: 0px;
   subcontrol-position: bottom;
   subcontrol-origin: margin;

}


QScrollBar::add-line:vertical:hover 
{
   background-color: transparent;

}


QScrollBar::add-line:vertical:pressed 
{
   background-color: #3f3f3f;

}


QScrollBar::sub-line:vertical
{
   border: none;
   background: transparent;
   height: 0px;

}


QScrollBar::sub-line:vertical:hover 
{
   background-color: transparent;

}


QScrollBar::sub-line:vertical:pressed 
{
   background-color: #3f3f3f;

}


QScrollBar::up-arrow:vertical
{
   width: 0px;
   height: 0px;
   background: transparent;

}


QScrollBar::down-arrow:vertical 
{
   width: 0px;
   height: 0px;
   background: transparent;

}


QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical
{
   background-color: #222222;
	
}


QScrollBar:horizontal 
{
   border: none;
   height: 12px;

}


QScrollBar::handle:horizontal 
{
   border: none;
   border-radius : 0px;
   background-color: #7a7a7a;
   min-height: 80px;
   height : 12px;

}


QScrollBar::handle:horizontal:pressed
{
   background-color: #5d5f60; 

}


QScrollBar::add-line:horizontal
{
   border: none;
   background: transparent;
   height: 0px;
   subcontrol-position: bottom;
   subcontrol-origin: margin;

}


QScrollBar::add-line:horizontal:hover 
{
   background-color: transparent;

}


QScrollBar::add-line:horizontal:pressed 
{
   background-color: #3f3f3f;

}


QScrollBar::sub-line:horizontal
{
   border: none;
   background: transparent;
   height: 0px;

}


QScrollBar::sub-line:horizontal:hover 
{
   background-color: transparent;

}


QScrollBar::sub-line:horizontal:pressed 
{
   background-color: #3f3f3f;

}


QScrollBar::up-arrow:horizontal
{
   width: 0px;
   height: 0px;
   background: transparent;

}


QScrollBar::down-arrow:horizontal 
{
   width: 0px;
   height: 0px;
   background: transparent;

}


QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal
{
   background-color: #222222;
	
}


/*-----QProgressBar-----*/
QProgressBar
{
	border: 1px solid #1d1d1d;
    text-align: center;
	border-radius: 10px;
	color: #fff;
	font-weight: bold;

}


QProgressBar::chunk
{
    background-color: #3b86ae;
	border-radius: 9px;
    margin: 0.5px;

}


/*-----QStatusBar-----*/
QStatusBar
{
	background-color: #4a5157;
	color: #ffffff;
	border-color: #051a39;

}


/*-----QSizeGrip-----*/
QSizeGrip 
{
	background-color: image("./ressources/sizegrip.png"); /*To replace*/
	border: none;

}


"""


flag1=None
def main(deger):
    MesajUyarisi1 = QDialog()

    def accept():
        #print("b")
        global flag1
        flag1= True
        MesajUyarisi1.deleteLater()
        return flag1



    def reject():
        #print("a")
        global flag1
        flag1 = False
        MesajUyarisi1.deleteLater()
        return flag1



    def EminMisiniz(deger):
        MesajUyarisi1.setGeometry(600, 280, 518, 224)
        MesajUyarisi1.setMaximumSize(518, 224)
        MesajUyarisi1.setMinimumSize(518, 224)
        MesajUyarisi1.setWindowIcon(QIcon('images/icon.png'))
        MesajUyarisi1.setWindowFlags(Qt.FramelessWindowHint)
        MesajUyarisi1.setAttribute(Qt.WA_TranslucentBackground)
        MesajUyarisi1.setModal(True)
        MesajUyarisi1.setStyleSheet(css)
        verticalLayout_6 = QtWidgets.QVBoxLayout(MesajUyarisi1)
        verticalLayout_6.setContentsMargins(0, 0, 0, 0)
        verticalLayout_6.setObjectName("verticalLayout_6")
        frame_2 = QtWidgets.QFrame(MesajUyarisi1)
        frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        frame_2.setObjectName("frame_2")
        verticalLayout_7 = QtWidgets.QVBoxLayout(frame_2)
        verticalLayout_7.setContentsMargins(0, 0, 0, 0)
        verticalLayout_7.setObjectName("verticalLayout_7")
        frame_title_2 = QtWidgets.QFrame(frame_2)
        frame_title_2.setMaximumSize(QtCore.QSize(16777215, 40))
        frame_title_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        frame_title_2.setFrameShadow(QtWidgets.QFrame.Raised)
        frame_title_2.setObjectName("frame_title_2")
        frame_title_2.setStyleSheet("")
        horizontalLayout_5 = QtWidgets.QHBoxLayout(frame_title_2)
        horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
        horizontalLayout_5.setObjectName("horizontalLayout_5")
        frame_7 = QtWidgets.QFrame(frame_title_2)
        frame_7.setFrameShape(QtWidgets.QFrame.StyledPanel)
        frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        frame_7=DragWidget()##########################################
        frame_7.setObjectName("frame_7")
        label_title_3 = QtWidgets.QLabel(frame_7)
        label_title_3.setGeometry(QtCore.QRect(12, -8, 405, 50))
        font = QtGui.QFont()
        font.setFamily("Roboto")
        font.setPointSize(14)
        label_title_3.setFont(font)
        label_title_3.setStyleSheet("color: rgb(60, 231, 195);")
        label_title_3.setObjectName("label_title_3")
        horizontalLayout_5.addWidget(frame_7)
        frame_6 = QtWidgets.QFrame(frame_title_2)
        frame_6.setMinimumSize(QtCore.QSize(70, 0))
        frame_6.setMaximumSize(QtCore.QSize(60, 16777215))
        frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
        frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        frame_6.setObjectName("frame_6")
        horizontalLayout_6 = QtWidgets.QHBoxLayout(frame_6)
        horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
        horizontalLayout_6.setObjectName("horizontalLayout_6")
        btn_close_3 = QtWidgets.QPushButton(frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(btn_close_3.sizePolicy().hasHeightForWidth())
        btn_close_3.setSizePolicy(sizePolicy)
        btn_close_3.setMinimumSize(QtCore.QSize(30, 0))
        btn_close_3.setMaximumSize(QtCore.QSize(10, 16777215))
        btn_close_3.setStyleSheet(
            "QPushButton {    \n""    border: none;\n""    background-color: transparent;\n""}\n""QPushButton:hover {\n""    background-color: rgb(52, 59, 72);\n""}\n""QPushButton:pressed {    \n""    background-color: rgb(85, 170, 255);\n""}")
        btn_close_3.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/16x16/icons/16x16/cil-x.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        btn_close_3.setIcon(icon)
        btn_close_3.setObjectName("btn_close_3")
        btn_close_3.clicked.connect(MesajUyarisi1.close)
        horizontalLayout_6.addWidget(btn_close_3)
        horizontalLayout_5.addWidget(frame_6)
        verticalLayout_7.addWidget(frame_title_2)
        frame_5 = QtWidgets.QFrame(frame_2)
        frame_5.setFrameShape(QtWidgets.QFrame.StyledPanel)
        frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        frame_5.setObjectName("frame_5")
        label_2 = QtWidgets.QLabel(frame_5)
        label_2.setGeometry(QtCore.QRect(26, 16, 71, 77))
        label_2.setText("")
        label_2.setPixmap(QtGui.QPixmap("images/question.png"))
        label_2.setObjectName("label_2")
        mustsil_lbl2_2 = QtWidgets.QLabel(frame_5)
        mustsil_lbl2_2.setGeometry(QtCore.QRect(112, -14, 391, 107))
        font = QtGui.QFont()
        font.setPointSize(15)
        font.setBold(True)
        font.setWeight(75)
        mustsil_lbl2_2.setFont(font)
        mustsil_lbl2_2.setStyleSheet("color: rgb(60, 231, 195);font:bold 12px;")
        mustsil_lbl2_2.setObjectName("mustsil_lbl2_2")
        buttonBox = QtWidgets.QDialogButtonBox(frame_5)
        buttonBox.setGeometry(QtCore.QRect(272, 112, 231, 57))
        buttonBox.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;    \n""    background-color: rgb(85, 255, 127);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(85, 255, 127, 150);\n""}\n""QPushButton:pressed {\n""background-color: rgb(10, 215, 255);\n""  border: 1px solid #19232D;\n""}\n""\n""QPushButton:pressed:hover {\n""  border: 1px solid #148CD2;\n""}color:black;")
        buttonBox.setOrientation(QtCore.Qt.Horizontal)
        buttonBox.addButton(QDialogButtonBox.Ok).setText("Evet")
        buttonBox.addButton(QDialogButtonBox.Cancel).setText("Hayır")
        buttonBox.setObjectName("buttonBox")
        verticalLayout_7.addWidget(frame_5)
        verticalLayout_6.addWidget(frame_2)

        _translate = QtCore.QCoreApplication.translate
        MesajUyarisi1.setWindowTitle(_translate("Dialog", "Dialog"))
        label_title_3.setText(_translate("Dialog", "Emin misiniz"))
        btn_close_3.setToolTip(_translate("Dialog", "Close"))
        mustsil_lbl2_2.setText(_translate("Dialog", deger))
        MesajUyarisi1.show()
        buttonBox.accepted.connect(accept)
        buttonBox.rejected.connect(reject)





    EminMisiniz(deger)
    MesajUyarisi1.exec_()
    #print(flag1)
    return flag1
def BasariliUyari(DEGER):
    MesajUyarisi1 = QDialog()
    MesajUyarisi1.setGeometry(600, 280, 545, 206)
    MesajUyarisi1.setMaximumSize(545, 286)
    MesajUyarisi1.setMinimumSize(545, 286)
    MesajUyarisi1.setWindowIcon(QIcon('images/icon.png'))
    MesajUyarisi1.setWindowFlags(Qt.FramelessWindowHint)
    MesajUyarisi1.setAttribute(Qt.WA_TranslucentBackground)
    MesajUyarisi1.setModal(True)

    drop_shadow_layout = QtWidgets.QVBoxLayout(MesajUyarisi1)
    drop_shadow_layout.setContentsMargins(10, 10, 10, 10)
    drop_shadow_layout.setSpacing(0)
    drop_shadow_layout.setObjectName("drop_shadow_layout")
    drop_shadow_frame = QtWidgets.QFrame(MesajUyarisi1)
    drop_shadow_frame.setStyleSheet("background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(42, 44, 111, 255), stop:0.521368 rgba(28, 29, 73, 255));\n""border-radius: 10px;")
    drop_shadow_frame.setFrameShape(QtWidgets.QFrame.NoFrame)
    drop_shadow_frame.setFrameShadow(QtWidgets.QFrame.Raised)
    drop_shadow_frame.setObjectName("drop_shadow_frame")
    verticalLayout = QtWidgets.QVBoxLayout(drop_shadow_frame)
    verticalLayout.setContentsMargins(0, 0, 0, 0)
    verticalLayout.setSpacing(0)
    verticalLayout.setObjectName("verticalLayout")
    title_bar = QtWidgets.QFrame(drop_shadow_frame)
    title_bar = DragWidget(drop_shadow_frame)
    title_bar.setMaximumSize(QtCore.QSize(16777215, 50))
    title_bar.setStyleSheet("background-color: none;")
    title_bar.setStyleSheet("")

    title_bar.setFrameShape(QtWidgets.QFrame.NoFrame)
    title_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    title_bar.setObjectName("title_bar")
    horizontalLayout = QtWidgets.QHBoxLayout(title_bar)
    horizontalLayout.setContentsMargins(0, 0, 0, 0)
    horizontalLayout.setSpacing(0)
    horizontalLayout.setObjectName("horizontalLayout")
    frame_title = QtWidgets.QFrame(title_bar)
    frame_title.setMinimumSize(QtCore.QSize(0, 50))
    font = QtGui.QFont()
    font.setFamily("Roboto Condensed Light")
    font.setPointSize(14)
    frame_title.setFont(font)
    frame_title.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_title.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_title.setObjectName("frame_title")
    verticalLayout_2 = QtWidgets.QVBoxLayout(frame_title)
    verticalLayout_2.setContentsMargins(15, 0, 0, 0)
    verticalLayout_2.setSpacing(0)
    verticalLayout_2.setObjectName("verticalLayout_2")
    label_title = QtWidgets.QLabel(frame_title)
    font = QtGui.QFont()
    font.setFamily("Roboto")
    font.setPointSize(14)
    label_title.setFont(font)
    label_title.setStyleSheet("color: rgb(60, 231, 195);")
    label_title.setObjectName("label_title")
    verticalLayout_2.addWidget(label_title)
    horizontalLayout.addWidget(frame_title)
    frame_btns = QtWidgets.QFrame(title_bar)
    frame_btns.setMaximumSize(QtCore.QSize(100, 16777215))
    frame_btns.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_btns.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_btns.setObjectName("frame_btns")
    horizontalLayout_3 = QtWidgets.QHBoxLayout(frame_btns)
    horizontalLayout_3.setObjectName("horizontalLayout_3")
    btn_minimize = QtWidgets.QPushButton(frame_btns)
    btn_minimize.setMinimumSize(QtCore.QSize(16, 16))
    btn_minimize.setMaximumSize(QtCore.QSize(17, 17))
    btn_minimize.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;        \n""    background-color: rgb(255, 170, 0);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(255, 170, 0, 150);\n""}")
    btn_minimize.setText("")
    btn_minimize.setObjectName("btn_minimize")
    horizontalLayout_3.addWidget(btn_minimize)
    btn_maximize = QtWidgets.QPushButton(frame_btns)
    btn_maximize.setMinimumSize(QtCore.QSize(16, 16))
    btn_maximize.setMaximumSize(QtCore.QSize(17, 17))
    btn_maximize.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;    \n""    background-color: rgb(85, 255, 127);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(85, 255, 127, 150);\n""}")
    btn_maximize.setText("")
    btn_maximize.setObjectName("btn_maximize")
    horizontalLayout_3.addWidget(btn_maximize)
    btn_close = QtWidgets.QPushButton(frame_btns)
    btn_close.setMinimumSize(QtCore.QSize(16, 16))
    btn_close.setMaximumSize(QtCore.QSize(17, 17))
    btn_close.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;        \n""    background-color: rgb(255, 0, 0);\n""}\n""QPushButton:hover {        \n""    background-color: rgba(255, 0, 0, 150);\n""}")
    btn_close.setText("")
    btn_close.setObjectName("btn_close")
    horizontalLayout_3.addWidget(btn_close)
    horizontalLayout.addWidget(frame_btns)
    verticalLayout.addWidget(title_bar)
    content_bar = QtWidgets.QFrame(drop_shadow_frame)
    content_bar.setStyleSheet("background-color: none;")
    content_bar.setFrameShape(QtWidgets.QFrame.StyledPanel)
    content_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    content_bar.setObjectName("content_bar")
    verticalLayout_4 = QtWidgets.QVBoxLayout(content_bar)
    verticalLayout_4.setObjectName("verticalLayout_4")
    frame = QtWidgets.QFrame(content_bar)
    frame.setStyleSheet("QPlainTextEdit {\n""  background-color: #19232D;\n""  color: #F0F0F0;\n""  border-radius: 4px;\n""  border: 1px solid #32414B;\n""}\n""\n""\n""QPlainTextEdit:focus {\n""  border: 1px solid #1464A0;\n""}\n""\n""\n""QPlainTextEdit:selected {\n""  background: #1464A0;\n""  color: #32414B;\n""}")
    frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame.setFrameShadow(QtWidgets.QFrame.Raised)
    frame.setObjectName("frame")
    mustsil_lbl2 = QtWidgets.QLabel(frame)
    mustsil_lbl2.setGeometry(QtCore.QRect(100, 0, 391, 101))
    font = QtGui.QFont()
    mustsil_lbl2.setFont(font)
    mustsil_lbl2.setStyleSheet("color: rgb(60, 231, 195);font:bold 17px;")
    mustsil_lbl2.setObjectName("mustsil_lbl2")
    pushButton = QtWidgets.QPushButton(frame)
    pushButton.setGeometry(QtCore.QRect(410, 130, 91, 31))
    pushButton.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;    \n""    background-color: rgb(85, 255, 127);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(85, 255, 127, 150);\n""}\n""QPushButton:pressed {\n""background-color: rgb(10, 215, 255);\n""  border: 1px solid #19232D;\n""}\n""\n""QPushButton:pressed:hover {\n""  border: 1px solid #148CD2;\n""}")
    pushButton.setObjectName("pushButton")
    label = QtWidgets.QLabel(frame)
    label.setGeometry(QtCore.QRect(10, 40, 71, 71))
    label.setText("")
    label.setPixmap(QtGui.QPixmap("images/checked.png"))
    label.setObjectName("label")
    verticalLayout_4.addWidget(frame)
    verticalLayout.addWidget(content_bar)
    credits_bar = QtWidgets.QFrame(drop_shadow_frame)
    credits_bar.setMaximumSize(QtCore.QSize(16777215, 30))
    credits_bar.setStyleSheet("background-color: rgb(33, 33, 75);")
    credits_bar.setFrameShape(QtWidgets.QFrame.NoFrame)
    credits_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    credits_bar.setObjectName("credits_bar")
    horizontalLayout_2 = QtWidgets.QHBoxLayout(credits_bar)
    horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
    horizontalLayout_2.setSpacing(0)
    horizontalLayout_2.setObjectName("horizontalLayout_2")
    frame_label_credits = QtWidgets.QFrame(credits_bar)
    frame_label_credits.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_label_credits.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_label_credits.setObjectName("frame_label_credits")
    verticalLayout_3 = QtWidgets.QVBoxLayout(frame_label_credits)
    verticalLayout_3.setContentsMargins(15, 0, 0, 0)
    verticalLayout_3.setSpacing(0)
    verticalLayout_3.setObjectName("verticalLayout_3")
    label_credits = QtWidgets.QLabel(frame_label_credits)
    font = QtGui.QFont()
    font.setFamily("Roboto")
    label_credits.setFont(font)
    label_credits.setStyleSheet("color: rgb(128, 102, 168);")
    label_credits.setObjectName("label_credits")
    verticalLayout_3.addWidget(label_credits)
    horizontalLayout_2.addWidget(frame_label_credits)
    frame_grip = QtWidgets.QFrame(credits_bar)
    frame_grip.setMinimumSize(QtCore.QSize(30, 30))
    frame_grip.setMaximumSize(QtCore.QSize(30, 30))
    frame_grip.setStyleSheet("padding: 5px;")
    frame_grip.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_grip.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_grip.setObjectName("frame_grip")
    horizontalLayout_2.addWidget(frame_grip)
    verticalLayout.addWidget(credits_bar)
    drop_shadow_layout.addWidget(drop_shadow_frame)
    btn_minimize.clicked.connect(MesajUyarisi1.showMinimized)
    btn_close.clicked.connect(MesajUyarisi1.close)
    pushButton.clicked.connect(MesajUyarisi1.close)
    _translate = QtCore.QCoreApplication.translate
    label_title.setText(_translate("MainWindow", "İşlem Başarı İle Gerçekleşti"))
    btn_minimize.setToolTip(_translate("MainWindow", "Minimize"))
    btn_maximize.setToolTip(_translate("MainWindow", "Maximize"))
    btn_close.setToolTip(_translate("MainWindow", "Close"))
    mustsil_lbl2.setText(_translate("MainWindow", DEGER))
    pushButton.setText(_translate("MainWindow", "Tamam"))
    label_credits.setText(_translate("MainWindow", "Yapımcı: Berkay Şen"))

    MesajUyarisi1.show()
    MesajUyarisi1.exec_()


def SQL(kod):
    connect = sqlite3.connect("veritabani.db")
    cursor = connect.cursor()
    cursor.execute(kod)
    veri = cursor.fetchall()
    connect.commit()
    connect.close()
    return veri


class DragWidget(QFrame):
    startPos = None

    def mousePressEvent(self, event):
        if event.button() == Qt.LeftButton:
            self.startPos = event.pos()

    def mouseMoveEvent(self, event):
        if event.buttons() == Qt.LeftButton and self.startPos is not None:
            delta = event.pos() - self.startPos
            self.window().move(self.window().pos() + delta)

    def mouseReleaseEvent(self, event):
        self.startPos = None


def HataUyarisi(DEGER):
    MesajUyarisi = QDialog()
    MesajUyarisi.setGeometry(600, 280, 545, 206)
    MesajUyarisi.setMaximumSize(545, 286)
    MesajUyarisi.setMinimumSize(545, 286)
    MesajUyarisi.setWindowIcon(QIcon('images/icon.png'))
    MesajUyarisi.setWindowFlags(Qt.FramelessWindowHint)
    MesajUyarisi.setAttribute(Qt.WA_TranslucentBackground)
    MesajUyarisi.setModal(True)
    drop_shadow_layout = QtWidgets.QVBoxLayout(MesajUyarisi)
    drop_shadow_layout.setContentsMargins(10, 10, 10, 10)
    drop_shadow_layout.setSpacing(0)
    drop_shadow_layout.setObjectName("drop_shadow_layout")
    drop_shadow_frame = QtWidgets.QFrame(MesajUyarisi)
    drop_shadow_frame.setStyleSheet("background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:1, stop:0 rgba(42, 44, 111, 255), stop:0.521368 rgba(28, 29, 73, 255));\n""border-radius: 10px;")
    drop_shadow_frame.setFrameShape(QtWidgets.QFrame.NoFrame)
    drop_shadow_frame.setFrameShadow(QtWidgets.QFrame.Raised)
    drop_shadow_frame.setObjectName("drop_shadow_frame")
    verticalLayout = QtWidgets.QVBoxLayout(drop_shadow_frame)
    verticalLayout.setContentsMargins(0, 0, 0, 0)
    verticalLayout.setSpacing(0)
    verticalLayout.setObjectName("verticalLayout")
    title_bar = QtWidgets.QFrame(drop_shadow_frame)
    title_bar = DragWidget(drop_shadow_frame)
    title_bar.setMaximumSize(QtCore.QSize(16777215, 50))
    title_bar.setStyleSheet("background-color: none;")
    title_bar.setStyleSheet("")
    title_bar.setFrameShape(QtWidgets.QFrame.NoFrame)
    title_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    title_bar.setObjectName("title_bar")
    horizontalLayout = QtWidgets.QHBoxLayout(title_bar)
    horizontalLayout.setContentsMargins(0, 0, 0, 0)
    horizontalLayout.setSpacing(0)
    horizontalLayout.setObjectName("horizontalLayout")
    frame_title = QtWidgets.QFrame(title_bar)
    frame_title.setMinimumSize(QtCore.QSize(0, 50))
    font = QtGui.QFont()
    font.setFamily("Roboto Condensed Light")
    font.setPointSize(14)
    frame_title.setFont(font)
    frame_title.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_title.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_title.setObjectName("frame_title")
    verticalLayout_2 = QtWidgets.QVBoxLayout(frame_title)
    verticalLayout_2.setContentsMargins(15, 0, 0, 0)
    verticalLayout_2.setSpacing(0)
    verticalLayout_2.setObjectName("verticalLayout_2")
    label_title = QtWidgets.QLabel(frame_title)
    font = QtGui.QFont()
    font.setFamily("Roboto")
    font.setPointSize(14)
    label_title.setFont(font)
    label_title.setStyleSheet("color: rgb(60, 231, 195);")
    label_title.setObjectName("label_title")
    verticalLayout_2.addWidget(label_title)
    horizontalLayout.addWidget(frame_title)
    frame_btns = QtWidgets.QFrame(title_bar)
    frame_btns.setMaximumSize(QtCore.QSize(100, 16777215))
    frame_btns.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_btns.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_btns.setObjectName("frame_btns")
    horizontalLayout_3 = QtWidgets.QHBoxLayout(frame_btns)
    horizontalLayout_3.setObjectName("horizontalLayout_3")
    btn_minimize = QtWidgets.QPushButton(frame_btns)
    btn_minimize.setMinimumSize(QtCore.QSize(16, 16))
    btn_minimize.setMaximumSize(QtCore.QSize(17, 17))
    btn_minimize.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;        \n""    background-color: rgb(255, 170, 0);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(255, 170, 0, 150);\n""}")
    btn_minimize.setText("")
    btn_minimize.setObjectName("btn_minimize")
    horizontalLayout_3.addWidget(btn_minimize)
    btn_maximize = QtWidgets.QPushButton(frame_btns)
    btn_maximize.setMinimumSize(QtCore.QSize(16, 16))
    btn_maximize.setMaximumSize(QtCore.QSize(17, 17))
    btn_maximize.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;    \n""    background-color: rgb(85, 255, 127);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(85, 255, 127, 150);\n""}")
    btn_maximize.setText("")
    btn_maximize.setObjectName("btn_maximize")
    horizontalLayout_3.addWidget(btn_maximize)
    btn_close = QtWidgets.QPushButton(frame_btns)
    btn_close.setMinimumSize(QtCore.QSize(16, 16))
    btn_close.setMaximumSize(QtCore.QSize(17, 17))
    btn_close.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;        \n""    background-color: rgb(255, 0, 0);\n""}\n""QPushButton:hover {        \n""    background-color: rgba(255, 0, 0, 150);\n""}")
    btn_close.setText("")
    btn_close.setObjectName("btn_close")
    horizontalLayout_3.addWidget(btn_close)
    horizontalLayout.addWidget(frame_btns)
    verticalLayout.addWidget(title_bar)
    content_bar = QtWidgets.QFrame(drop_shadow_frame)
    content_bar.setStyleSheet("background-color: none;")
    content_bar.setFrameShape(QtWidgets.QFrame.StyledPanel)
    content_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    content_bar.setObjectName("content_bar")
    verticalLayout_4 = QtWidgets.QVBoxLayout(content_bar)
    verticalLayout_4.setObjectName("verticalLayout_4")
    frame = QtWidgets.QFrame(content_bar)
    frame.setStyleSheet("QPlainTextEdit {\n""  background-color: #19232D;\n""  color: #F0F0F0;\n""  border-radius: 4px;\n""  border: 1px solid #32414B;\n""}\n""\n""\n""QPlainTextEdit:focus {\n""  border: 1px solid #1464A0;\n""}\n""\n""\n""QPlainTextEdit:selected {\n""  background: #1464A0;\n""  color: #32414B;\n""}")
    frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame.setFrameShadow(QtWidgets.QFrame.Raised)
    frame.setObjectName("frame")
    mustsil_lbl2 = QtWidgets.QLabel(frame)
    mustsil_lbl2.setGeometry(QtCore.QRect(100, 0, 391, 101))
    font = QtGui.QFont()
    mustsil_lbl2.setFont(font)
    mustsil_lbl2.setStyleSheet("color: rgb(60, 231, 195);font:bold 17px;")
    mustsil_lbl2.setObjectName("mustsil_lbl2")
    pushButton = QtWidgets.QPushButton(frame)
    pushButton.setGeometry(QtCore.QRect(410, 130, 91, 31))
    pushButton.setStyleSheet("QPushButton {\n""    border: none;\n""    border-radius: 8px;    \n""    background-color: rgb(85, 255, 127);\n""}\n""QPushButton:hover {    \n""    background-color: rgba(85, 255, 127, 150);\n""}\n""QPushButton:pressed {\n""background-color: rgb(10, 215, 255);\n""  border: 1px solid #19232D;\n""}\n""\n""QPushButton:pressed:hover {\n""  border: 1px solid #148CD2;\n""}")
    pushButton.setObjectName("pushButton")
    label = QtWidgets.QLabel(frame)
    label.setGeometry(QtCore.QRect(10, 40, 71, 71))
    label.setText("")
    label.setPixmap(QtGui.QPixmap("images/warning.png"))
    label.setObjectName("label")
    verticalLayout_4.addWidget(frame)
    verticalLayout.addWidget(content_bar)
    credits_bar = QtWidgets.QFrame(drop_shadow_frame)
    credits_bar.setMaximumSize(QtCore.QSize(16777215, 30))
    credits_bar.setStyleSheet("background-color: rgb(33, 33, 75);")
    credits_bar.setFrameShape(QtWidgets.QFrame.NoFrame)
    credits_bar.setFrameShadow(QtWidgets.QFrame.Raised)
    credits_bar.setObjectName("credits_bar")
    horizontalLayout_2 = QtWidgets.QHBoxLayout(credits_bar)
    horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
    horizontalLayout_2.setSpacing(0)
    horizontalLayout_2.setObjectName("horizontalLayout_2")
    frame_label_credits = QtWidgets.QFrame(credits_bar)
    frame_label_credits.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_label_credits.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_label_credits.setObjectName("frame_label_credits")
    verticalLayout_3 = QtWidgets.QVBoxLayout(frame_label_credits)
    verticalLayout_3.setContentsMargins(15, 0, 0, 0)
    verticalLayout_3.setSpacing(0)
    verticalLayout_3.setObjectName("verticalLayout_3")
    label_credits = QtWidgets.QLabel(frame_label_credits)
    font = QtGui.QFont()
    font.setFamily("Roboto")
    label_credits.setFont(font)
    label_credits.setStyleSheet("color: rgb(128, 102, 168);")
    label_credits.setObjectName("label_credits")
    verticalLayout_3.addWidget(label_credits)
    horizontalLayout_2.addWidget(frame_label_credits)
    frame_grip = QtWidgets.QFrame(credits_bar)
    frame_grip.setMinimumSize(QtCore.QSize(30, 30))
    frame_grip.setMaximumSize(QtCore.QSize(30, 30))
    frame_grip.setStyleSheet("padding: 5px;")
    frame_grip.setFrameShape(QtWidgets.QFrame.StyledPanel)
    frame_grip.setFrameShadow(QtWidgets.QFrame.Raised)
    frame_grip.setObjectName("frame_grip")
    horizontalLayout_2.addWidget(frame_grip)
    verticalLayout.addWidget(credits_bar)
    drop_shadow_layout.addWidget(drop_shadow_frame)

    btn_minimize.clicked.connect(MesajUyarisi.showMinimized)
    btn_close.clicked.connect(MesajUyarisi.close)
    pushButton.clicked.connect(MesajUyarisi.close)
    _translate = QtCore.QCoreApplication.translate
    label_title.setText(_translate("MainWindow", "Hata Oluştu"))
    btn_minimize.setToolTip(_translate("MainWindow", "Minimize"))
    btn_maximize.setToolTip(_translate("MainWindow", "Maximize"))
    btn_close.setToolTip(_translate("MainWindow", "Close"))
    mustsil_lbl2.setText(_translate("MainWindow", DEGER))
    pushButton.setText(_translate("MainWindow", "Tamam"))
    label_credits.setText(_translate("MainWindow", "Yapımcı: Berkay Şen"))
    MesajUyarisi.show()
    MesajUyarisi.exec_()



/*Copyright (c) DevSec Studio. All rights reserved.  MIT License  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */  /*-----QWidget-----*/ QWidget { 	background-color: #242424; 	color: #fff; 	selection-background-color: #fff; 	selection-color: #000;  }   /*-----QLabel-----*/ QLabel { 	background-color: transparent; 	color: #fff;  }   /*-----QMenuBar-----*/ QMenuBar  { 	background-color: #4a5157; 	color: #fff;  }   QMenuBar::item  { 	background-color: transparent; 	border-left: 1px solid #003333; 	padding: 5px; 	padding-left: 15px; 	padding-right: 15px;  }   QMenuBar::item:selected  { 	background-color: #003333; 	border: 1px solid #006666; 	color: #fff;  }   QMenuBar::item:pressed  { 	background-color: #006666; 	border: 1px solid #006666; 	color: #fff;  }   /*-----QMenu-----*/ QMenu {     background-color: #4a5157;     border: 1px solid #4a5157;     padding: 10px; 	color: #fff;  }   QMenu::item {     background-color: transparent;     padding: 2px 20px 2px 20px; 	min-width: 200px;  }   QMenu::separator {    	background-color: #242424; 	height: 1px;  }   QMenu::item:disabled {     color: #555;     background-color: transparent;     padding: 2px 20px 2px 20px;  }   QMenu::item:selected { 	background-color: #003333; 	border: 1px solid #006666; 	color: #fff;  }   /*-----QToolButton-----*/ QToolButton  { 	background-color: transparent; 	color: #fff; 	padding: 3px; 	margin-left: 1px; }   QToolButton:hover { 	background-color: rgba(70,162,218,50%); 	border: 1px solid #46a2da; 	color: #000; 	 }   QToolButton:pressed { 	background-color: #727272; 	border: 1px solid #46a2da;  }   QToolButton:checked { 	background-color: #727272; 	border: 1px solid #222; }   /*-----QPushButton-----*/ QPushButton { 	background-color: #4891b4; 	color: #fff; 	min-width: 80px; 	border-radius: 4px; 	padding: 5px;  }   QPushButton::flat { 	background-color: transparent; 	border: none; 	color: #000;  }   QPushButton::disabled { 	background-color: #606060; 	color: #959595; 	border-color: #051a39;  }   QPushButton::hover { 	background-color: #54aad3; 	border: 1px solid #46a2da;  }   QPushButton::pressed { 	background-color: #2385b4; 	border: 1px solid #46a2da;  }   QPushButton::checked { 	background-color: #bd5355; 	border: 1px solid #bd5355;  }   /*-----QLineEdit-----*/ QLineEdit { 	background-color: #242424; 	color : #fff; 	border: 1px solid #1d1d1d; 	padding: 3px; 	padding-left: 5px; 	border-radius: 4px;  }   /*-----QPlainTExtEdit-----*/ QPlainTextEdit { 	background-color: #242424; 	color : #fff; 	border: 1px solid #1d1d1d; 	padding: 3px; 	padding-left: 5px; 	border-radius: 4px;  }   /*-----QToolBox-----*/ QToolBox { 	background-color: transparent; 	border: 1px solid #1d1d1d;  }   QToolBox::tab { 	background-color: #002b2b; 	border: 1px solid #1d1d1d;  }   QToolBox::tab:hover { 	background-color: #006d6d; 	border: 1px solid #1d1d1d;  }   /*-----QComboBox-----*/ QComboBox {     background-color: #4a5157;     padding-left: 6px;     color: #fff;     height: 20px; 	border-radius: 4px;  }   QComboBox::disabled { 	background-color: #404040; 	color: #656565; 	border-color: #051a39;  }   QComboBox:on {     background-color: #4a5157; 	color: #fff;  }   QComboBox QAbstractItemView {     background-color: #4a5157;     color: #fff;     selection-background-color: #002b2b; 	selection-color: #fff;     outline: 0;  }   QComboBox::drop-down { 	background-color: #4a5157;     subcontrol-origin: padding;     subcontrol-position: top right; 	border-radius: 4px;     width: 15px;  }   QComboBox::down-arrow {     image: url(://arrow-down.png);     width: 8px;     height: 8px;  }   /*-----QDoubleSpinBox & QCalendarWidget-----*/ QDoubleSpinBox, QCalendarWidget QSpinBox  { 	background-color: #242424; 	color : #fff; 	border: 1px solid #1d1d1d; 	border-radius: 4px; 	padding: 3px; 	padding-left: 5px;  }   QDoubleSpinBox::up-button,  QCalendarWidget QSpinBox::up-button { 	background-color: #4a5157;     width: 16px;  	border-top-right-radius: 4px;     border-width: 1px; 	border-color: #1d1d1d;  }   QDoubleSpinBox::up-button:hover,  QCalendarWidget QSpinBox::up-button:hover { 	background-color: #585858;  }   QDoubleSpinBox::up-button:pressed,  QCalendarWidget QSpinBox::up-button:pressed { 	background-color: #252525;     width: 16px;      border-width: 1px;  }   QDoubleSpinBox::up-arrow, QCalendarWidget QSpinBox::up-arrow {     image: url(://arrow-up.png);     width: 7px;     height: 7px;  }   QDoubleSpinBox::down-button,  QCalendarWidget QSpinBox::down-button { 	background-color: #4a5157;     width: 16px;      border-width: 1px; 	border-bottom-right-radius: 4px; 	border-color: #1d1d1d;  }   QDoubleSpinBox::down-button:hover,  QCalendarWidget QSpinBox::down-button:hover { 	background-color: #585858;  }   QDoubleSpinBox::down-button:pressed,  QCalendarWidget QSpinBox::down-button:pressed { 	background-color: #252525;     width: 16px;      border-width: 1px;  }   QDoubleSpinBox::down-arrow, QCalendarWidget QSpinBox::down-arrow {     image: url(://arrow-down.png);     width: 7px;     height: 7px;  }   /*-----QGroupBox-----*/ QGroupBox  {     border: 1px solid;     border-color: #1d1d1d; 	border-radius: 4px;     margin-top: 23px;  }   QGroupBox::title   {     background-color: #002b2b;     color: #fff; 	subcontrol-position: top left;     subcontrol-origin: margin;     padding: 5px; 	min-width: 100px; 	border: 1px solid #1d1d1d; 	border-top-left-radius: 4px; 	border-top-right-radius: 4px; 	border-bottom: none;  }   /*-----QHeaderView-----*/ QHeaderView::section {     background-color: #4a5157; 	border: none;     color: #fff; 	padding: 4px; 	 }   QHeaderView::section:disabled {     background-color: #525251;     color: #656565;  }   QHeaderView::section:checked {     background-color: qlineargradient(spread:repeat, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(227, 227, 227, 255),stop:1 rgba(187, 187, 187, 255));     color: #000;  }   QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one {     border-left: 1px solid #003333;  }   QHeaderView::section::vertical {     border-left: 1px solid #003333; }   QHeaderView::section::horizontal::first, QHeaderView::section::horizontal::only-one {     border-left: 1px solid #003333;  }   QHeaderView::section::horizontal {     border-left: 1px solid #003333;  }   QTableCornerButton::section {     background-color: qlineargradient(spread:repeat, x1:1, y1:0, x2:1, y2:1, stop:0 rgba(227, 227, 227, 255),stop:1 rgba(187, 187, 187, 255)); 	border: 1px solid #000;     color: #fff;  }   /*-----QCalendarWidget-----*/ QCalendarWidget QToolButton {   	background-color: transparent;   	color: white;  }   QCalendarWidget QToolButton::hover { 	background-color: #006666; 	border: 1px solid #006666; 	color: #fff;  }   QCalendarWidget QMenu  { 	width: 120px; 	left: 20px; 	color: white;  }   QCalendarWidget QWidget  {  	alternate-background-color: #4a5157;  	color: #fff;  }   QCalendarWidget QAbstractItemView:enabled  { 	color: #fff;   	background-color: #242424;   	selection-background-color: #002b2b;  	selection-color: #fff;   }   QCalendarWidget QAbstractItemView:disabled  {  	color: #404040;   }   /*-----QTreeWidget-----*/ QTreeView { 	show-decoration-selected: 0; 	alternate-background-color: transparent; 	background-color: transparent;    	border: none; 	color: #fff; 	font: 8pt;  }   QTreeView::item:selected { 	color:#fff; 	background-color: #002b2b; 	border-radius: 0px;  }   QTreeView::item:!selected:hover {     background-color: #5e5e5e;     border: none;     color: white;  }   QTreeView::branch:has-children:!has-siblings:closed, QTreeView::branch:closed:has-children:has-siblings  { 	image: url(://tree-closed.png);  }   QTreeView::branch:open:has-children:!has-siblings, QTreeView::branch:open:has-children:has-siblings   { 	image: url(://tree-open.png);  }   /*-----QListView-----*/ QListView  { 	background-color: transparent; 	alternate-background-color: transparent;     border : none;     color: #fff;     show-decoration-selected: 1;      outline: 0;    	border: 1px solid #1d1d1d;  }   QListView::disabled  { 	background-color: #656565; 	color: #1b1b1b;     border: 1px solid #656565;  }   QListView::item  { 	background-color: transparent;     padding: 1px;  }   QListView::item:selected  { 	background-color: #002b2b; 	border: 1px solid #002b2b; 	color: #fff;  }   QListView::item:selected:!active  { 	background-color: #002b2b; 	border: 1px solid #002b2b; 	color: #fff;  }   QListView::item:selected:active  { 	background-color: #002b2b; 	border: 1px solid #002b2b; 	color: #fff;  }   QListView::item:hover {     background-color: #5e5e5e;     border: none;     color: #000;  }   /*-----QCheckBox-----*/ QCheckBox { 	background-color: transparent;     color: #fff; 	border: none;  }   QCheckBox::indicator {     background-color: lightgray;     border: 1px solid #000;     width: 12px;     height: 12px;  }   QCheckBox::indicator:checked {     image:url("./ressources/check.png"); 	background-color: #002b2b;     border: 1px solid #3a546e;  }   QCheckBox::indicator:unchecked:hover { 	border: 1px solid #46a2da;   }   QCheckBox::disabled { 	color: #656565;  }   QCheckBox::indicator:disabled { 	background-color: #656565; 	color: #656565;     border: 1px solid #656565;  }   /*-----QRadioButton-----*/ QRadioButton  { 	color: #fff; 	background-color: transparent;  }   QRadioButton::indicator::unchecked:hover  { 	background-color: #d3d3d3; 	border: 2px solid #002b2b; 	border-radius: 6px; }   QRadioButton::indicator::checked  { 	border: 2px solid #52beff; 	border-radius: 6px; 	background-color: #002b2b;   	width: 9px;  	height: 9px;   }   /*-----QScrollBar-----*/ QScrollBar:vertical  {    border: none;    width: 12px;  }   QScrollBar::handle:vertical  {    border: none;    border-radius : 0px;    background-color: #7a7a7a;    min-height: 80px;    width : 12px;  }   QScrollBar::handle:vertical:pressed {    background-color: #5d5f60;   }   QScrollBar::add-line:vertical {    border: none;    background: transparent;    height: 0px;    subcontrol-position: bottom;    subcontrol-origin: margin;  }   QScrollBar::add-line:vertical:hover  {    background-color: transparent;  }   QScrollBar::add-line:vertical:pressed  {    background-color: #3f3f3f;  }   QScrollBar::sub-line:vertical {    border: none;    background: transparent;    height: 0px;  }   QScrollBar::sub-line:vertical:hover  {    background-color: transparent;  }   QScrollBar::sub-line:vertical:pressed  {    background-color: #3f3f3f;  }   QScrollBar::up-arrow:vertical {    width: 0px;    height: 0px;    background: transparent;  }   QScrollBar::down-arrow:vertical  {    width: 0px;    height: 0px;    background: transparent;  }   QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {    background-color: #222222; 	 }   QScrollBar:horizontal  {    border: none;    height: 12px;  }   QScrollBar::handle:horizontal  {    border: none;    border-radius : 0px;    background-color: #7a7a7a;    min-height: 80px;    height : 12px;  }   QScrollBar::handle:horizontal:pressed {    background-color: #5d5f60;   }   QScrollBar::add-line:horizontal {    border: none;    background: transparent;    height: 0px;    subcontrol-position: bottom;    subcontrol-origin: margin;  }   QScrollBar::add-line:horizontal:hover  {    background-color: transparent;  }   QScrollBar::add-line:horizontal:pressed  {    background-color: #3f3f3f;  }   QScrollBar::sub-line:horizontal {    border: none;    background: transparent;    height: 0px;  }   QScrollBar::sub-line:horizontal:hover  {    background-color: transparent;  }   QScrollBar::sub-line:horizontal:pressed  {    background-color: #3f3f3f;  }   QScrollBar::up-arrow:horizontal {    width: 0px;    height: 0px;    background: transparent;  }   QScrollBar::down-arrow:horizontal  {    width: 0px;    height: 0px;    background: transparent;  }   QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {    background-color: #222222; 	 }   /*-----QProgressBar-----*/ QProgressBar { 	border: 1px solid #1d1d1d;     text-align: center; 	border-radius: 10px; 	color: #fff; 	font-weight: bold;  }   QProgressBar::chunk {     background-color: #3b86ae; 	border-radius: 9px;     margin: 0.5px;  }   /*-----QStatusBar-----*/ QStatusBar { 	background-color: #4a5157; 	color: #ffffff; 	border-color: #051a39;  }   /*-----QSizeGrip-----*/ QSizeGrip  { 	background-color: image("./ressources/sizegrip.png"); /*To replace*/ 	border: none;  } #print("b") #print("a") ########################################## #19232D;\n""}\n""\n""QPushButton:pressed:hover {\n""  border: 1px solid #148CD2;\n""}color:black;") #print(flag1) #19232D;\n""  color: #F0F0F0;\n""  border-radius: 4px;\n""  border: 1px solid #32414B;\n""}\n""\n""\n""QPlainTextEdit:focus {\n""  border: 1px solid #1464A0;\n""}\n""\n""\n""QPlainTextEdit:selected {\n""  background: #1464A0;\n""  color: #32414B;\n""}") #19232D;\n""}\n""\n""QPushButton:pressed:hover {\n""  border: 1px solid #148CD2;\n""}") #19232D;\n""  color: #F0F0F0;\n""  border-radius: 4px;\n""  border: 1px solid #32414B;\n""}\n""\n""\n""QPlainTextEdit:focus {\n""  border: 1px solid #1464A0;\n""}\n""\n""\n""QPlainTextEdit:selected {\n""  background: #1464A0;\n""  color: #32414B;\n""}") #19232D;\n""}\n""\n""QPushButton:pressed:hover {\n""  border: 1px solid #148CD2;\n""}")