import sys
from clicker import Ui_MainWindow
from PyQt5 import QtCore, QtGui, QtWidgets
import pyautogui as gui
from time import sleep as sl
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
def activate_clicker():
ui.label.setText('Кликер включен')
while x == 0:
print("click")
sl(0.01)
ui.pushButton.pressed.connect(activate_clicker)
def disactivate_clicker():
ui.label.setText('Кликер выключен')
ui.pushButton_2.pressed.connect(disactivate_clicker)
sys.exit(app.exec_())