def __init__(self):
    super(animQt, self).__init__()
    self.setGeometry(250, 250, 360, 100)
    style = '\n        QMainWindow, QMessageBox{\n        background-color: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5, stop:0.264865 rgba(121, 185, 255, 255), stop:1 rgba(0, 126, 255, 255));\n        }\n        QPushButton{\n        background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0.448649 rgba(255, 255, 255, 107), stop:0.464865 rgba(0, 0, 0, 15));\n        border:1px solid rgb(0, 170, 255);\n        padding:5px;\n        color:#FFF;\n        border-radius:5px;\n        }\n        QPushButton:hover{\n        background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0.448649 rgba(0, 0, 0, 15), stop:0.47 rgba(255, 255, 255, 107));\n        }\n        QCheckBox{\n        color:#FFF;\n        }\n        QLineEdit{\n        background-color:rgba(255, 255, 255, 100);\n        color:#FFF;\n        border:1px solid rgb(0,170,255);\n        border-radius:5px;\n        padding:3px;\n        }\n        QLabel{\n        color:#FFF;\n        }\n        QComboBox{\n        background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0.448649 rgba(255, 255, 255, 107), stop:0.464865 rgba(0, 0, 0, 15));\n        color:#FFF;\n        padding:5px;\n        border:1px solid rgb(0, 170, 255);\n        border-radius:5px;\n        }\n        QComboBox:hover{\n        background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0.448649 rgba(0, 0, 0, 15), stop:0.47 rgba(255, 255, 255, 107));\n        }\n        QComboBox::drop-down{\n        subcontrol-origin: padding;\n        subcontrol-position: top right;\n        width:25px;\n        border-left-width: 1px;\n        border-left-style: solid;\n        border-top-right-radius: 5px;\n        border-bottom-right-radius: 5px;\n        border-left-color: rgb(0, 170, 255);\n        }\n        QComboBox::down-arrow{\n        border-image: url("./down-arrow.png");\n        height:30px;\n        width:30px;\n        }\n        '
    effect = QtGui.QGraphicsDropShadowEffect(self)
    effect.setBlurRadius(5)
    effect.setOffset(2, 2)
    self.setStyleSheet(style)
    self.setWindowTitle('Exe Generator(py2exe)')
    centralWidget = QtGui.QWidget()
    layout = QtGui.QGridLayout(centralWidget)
    self.foldPath = QtGui.QLineEdit(self)
    openBtn = QtGui.QPushButton(self)
    openBtn.setGraphicsEffect(effect)
    openBtn.setText('Select File')
    openBtn.clicked.connect(self.fileBrowser)
    pyPathInit = QtGui.QLabel(self)
    pyPathInit.setText('Select Python Version')
    self.pyPath = QtGui.QComboBox(self)
    self.pyPath.activated.connect(self.changePyPath)
    effect = QtGui.QGraphicsDropShadowEffect(self)
    effect.setBlurRadius(5)
    effect.setOffset(2, 2)
    self.pyPath.setGraphicsEffect(effect)
    self.checkBox = QtGui.QCheckBox(self)
    self.checkBox.setText('Window Mode')
    checkBtn = QtGui.QPushButton(self)
    checkBtn.clicked.connect(self.createSetup)
    checkBtn.setText('Process')
    effect = QtGui.QGraphicsDropShadowEffect(self)
    effect.setBlurRadius(5)
    effect.setOffset(2, 2)
    checkBtn.setGraphicsEffect(effect)
    layout.addWidget(self.foldPath, 0, 0, 1, 2)
    layout.addWidget(openBtn, 0, 2, 1, 1)
    layout.addWidget(pyPathInit, 1, 0, 1, 1)
    layout.addWidget(self.pyPath, 1, 1, 1, 2)
    layout.addWidget(self.checkBox, 2, 0, 1, 2)
    layout.addWidget(checkBtn, 2, 2, 1, 1)
    self.setCentralWidget(centralWidget)
    self.getInstalledPy()
def __init__(self):
    super(animQt, self).__init__()
    self.setGeometry(250, 250, 360, 100)
    style = '\n        QMainWindow, QMessageBox{\n        background-color: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5, stop:0.264865 rgba(121, 185, 255, 255), stop:1 rgba(0, 126, 255, 255));\n        }\n        QPushButton{\n        background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0.448649 rgba(255, 255, 255, 107), stop:0.464865 rgba(0, 0, 0, 15));\n        border:1px solid rgb(0, 170, 255);\n        padding:5px;\n        color:#FFF;\n        border-radius:5px;\n        }\n        QPushButton:hover{\n        background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0.448649 rgba(0, 0, 0, 15), stop:0.47 rgba(255, 255, 255, 107));\n        }\n        QCheckBox{\n        color:#FFF;\n        }\n        QLineEdit{\n        background-color:rgba(255, 255, 255, 100);\n        color:#FFF;\n        border:1px solid rgb(0,170,255);\n        border-radius:5px;\n        padding:3px;\n        }\n        QLabel{\n        color:#FFF;\n        }\n        QComboBox{\n        background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0.448649 rgba(255, 255, 255, 107), stop:0.464865 rgba(0, 0, 0, 15));\n        color:#FFF;\n        padding:5px;\n        border:1px solid rgb(0, 170, 255);\n        border-radius:5px;\n        }\n        QComboBox:hover{\n        background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0.448649 rgba(0, 0, 0, 15), stop:0.47 rgba(255, 255, 255, 107));\n        }\n        QComboBox::drop-down{\n        subcontrol-origin: padding;\n        subcontrol-position: top right;\n        width:25px;\n        border-left-width: 1px;\n        border-left-style: solid;\n        border-top-right-radius: 5px;\n        border-bottom-right-radius: 5px;\n        border-left-color: rgb(0, 170, 255);\n        }\n        QComboBox::down-arrow{\n        border-image: url("./down-arrow.png");\n        height:30px;\n        width:30px;\n        }\n        '
    effect = QtGui.QGraphicsDropShadowEffect(self)
    effect.setBlurRadius(5)
    effect.setOffset(2, 2)
    self.setStyleSheet(style)
    self.setWindowTitle('Exe Generator(py2exe)')
    centralWidget = QtGui.QWidget()
    layout = QtGui.QGridLayout(centralWidget)
    self.foldPath = QtGui.QLineEdit(self)
    openBtn = QtGui.QPushButton(self)
    openBtn.setGraphicsEffect(effect)
    openBtn.setText('Select File')
    openBtn.clicked.connect(self.fileBrowser)
    pyPathInit = QtGui.QLabel(self)
    pyPathInit.setText('Select Python Version')
    self.pyPath = QtGui.QComboBox(self)
    self.pyPath.activated.connect(self.changePyPath)
    effect = QtGui.QGraphicsDropShadowEffect(self)
    effect.setBlurRadius(5)
    effect.setOffset(2, 2)
    self.pyPath.setGraphicsEffect(effect)
    self.checkBox = QtGui.QCheckBox(self)
    self.checkBox.setText('Window Mode')
    checkBtn = QtGui.QPushButton(self)
    checkBtn.clicked.connect(self.createSetup)
    checkBtn.setText('Process')
    effect = QtGui.QGraphicsDropShadowEffect(self)
    effect.setBlurRadius(5)
    effect.setOffset(2, 2)
    checkBtn.setGraphicsEffect(effect)
    layout.addWidget(self.foldPath, 0, 0, 1, 2)
    layout.addWidget(openBtn, 0, 2, 1, 1)
    layout.addWidget(pyPathInit, 1, 0, 1, 1)
    layout.addWidget(self.pyPath, 1, 1, 1, 2)
    layout.addWidget(self.checkBox, 2, 0, 1, 2)
    layout.addWidget(checkBtn, 2, 2, 1, 1)
    self.setCentralWidget(centralWidget)
    self.getInstalledPy()