from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
import PyQt5.sip

class drawable_label(QLabel):
    def __init__(self, parent, event):
        QLabel.__init__(self, parent)
        self.event = event
        self.setStyleSheet('QLabel {background-color: #000000; color: #000000;}')
    def mousePressEvent(self, e):
        point = (e.pos().x(), e.pos().y())
        self.event.E_label_press(point)

class clickable_label(QLabel):
    def __init__(self, parent, event):
        QLabel.__init__(self, parent)
        self.event = event
        self.setStyleSheet('QLabel {background-color: #000000; color: #E6E6E6;}')
    def mousePressEvent(self, e):
        if e.buttons() == Qt.LeftButton:
            self.event.label_click()
        elif e.buttons() == Qt.RightButton:
            self.event.del_click()

class my_ComboBox(QComboBox):
    def __init__(self, parent):
        QComboBox.__init__(self, parent)
        self.setStyleSheet('QComboBox {background-color: #424242; color: #E6E6E6;}')

class my_btn(QPushButton):
    def __init__(self, parent):
        QPushButton.__init__(self, parent)
        self.setStyleSheet('QPushButton {background-color: #424242; color: #E6E6E6;}')

class my_list(QListWidget):
    def __init__(self, parent):
        QListWidget.__init__(self, parent)
        self.setStyleSheet('QListWidget {background-color: #000000; color: #E6E6E6;}')

class my_edit(QTextEdit):
    def __init__(self, parent):
        QTextEdit.__init__(self, parent)
        self.setStyleSheet('QTextEdit {background-color: #000000; color: #E6E6E6;}')

class my_line_edit(QLineEdit):
    def __init__(self, parent):
        QLineEdit.__init__(self, parent)
        self.setStyleSheet('QLineEdit {background-color: #000000; color: #E6E6E6;}')

class my_label(QLabel):
    def __init__(self, parent):
        QLabel.__init__(self, parent)
        self.setStyleSheet('QLabel {background-color: #242424; color: #E6E6E6;}')

class my_rdo(QRadioButton):
    def __init__(self, parent):
        QRadioButton.__init__(self, parent)
        self.setStyleSheet('QRadioButton {color: #E6E6E6;}')

class my_cb(QCheckBox):
    def __init__(self, parent):
        QCheckBox.__init__(self, parent)
        self.setStyleSheet('QCheckBox {background-color: #242424; color: #E6E6E6;}')

class my_widget(QWidget):
    def __init__(self, parent):
        QWidget.__init__(self, parent)
        self.setStyleSheet('QWidget {background-color: #FFFFFF; color: #FFFFFF;}')

class my_gb(QGroupBox):
    def __init__(self, parent):
        QGroupBox.__init__(self, parent)
        self.setStyleSheet("QGroupBox{color: #E6E6E6 ;border-color: #242424;}")

class my_slider(QSlider):
    def __init__(self, direction, parent):
        QSlider.__init__(self, direction, parent)
        # self.setStyleSheet("QSlider{color: #E6E6E6 ;border-color: #242424;}")

from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
import PyQt5.sip

class drawable_label(QLabel):
    def __init__(self, parent, event):
        QLabel.__init__(self, parent)
        self.event = event
        self.setStyleSheet('QLabel {background-color: #000000; color: #000000;}')
    def mousePressEvent(self, e):
        point = (e.pos().x(), e.pos().y())
        self.event.E_label_press(point)

class clickable_label(QLabel):
    def __init__(self, parent, event):
        QLabel.__init__(self, parent)
        self.event = event
        self.setStyleSheet('QLabel {background-color: #000000; color: #E6E6E6;}')
    def mousePressEvent(self, e):
        if e.buttons() == Qt.LeftButton:
            self.event.label_click()
        elif e.buttons() == Qt.RightButton:
            self.event.del_click()

class my_ComboBox(QComboBox):
    def __init__(self, parent):
        QComboBox.__init__(self, parent)
        self.setStyleSheet('QComboBox {background-color: #424242; color: #E6E6E6;}')

class my_btn(QPushButton):
    def __init__(self, parent):
        QPushButton.__init__(self, parent)
        self.setStyleSheet('QPushButton {background-color: #424242; color: #E6E6E6;}')

class my_list(QListWidget):
    def __init__(self, parent):
        QListWidget.__init__(self, parent)
        self.setStyleSheet('QListWidget {background-color: #000000; color: #E6E6E6;}')

class my_edit(QTextEdit):
    def __init__(self, parent):
        QTextEdit.__init__(self, parent)
        self.setStyleSheet('QTextEdit {background-color: #000000; color: #E6E6E6;}')

class my_line_edit(QLineEdit):
    def __init__(self, parent):
        QLineEdit.__init__(self, parent)
        self.setStyleSheet('QLineEdit {background-color: #000000; color: #E6E6E6;}')

class my_label(QLabel):
    def __init__(self, parent):
        QLabel.__init__(self, parent)
        self.setStyleSheet('QLabel {background-color: #242424; color: #E6E6E6;}')

class my_rdo(QRadioButton):
    def __init__(self, parent):
        QRadioButton.__init__(self, parent)
        self.setStyleSheet('QRadioButton {color: #E6E6E6;}')

class my_cb(QCheckBox):
    def __init__(self, parent):
        QCheckBox.__init__(self, parent)
        self.setStyleSheet('QCheckBox {background-color: #242424; color: #E6E6E6;}')

class my_widget(QWidget):
    def __init__(self, parent):
        QWidget.__init__(self, parent)
        self.setStyleSheet('QWidget {background-color: #FFFFFF; color: #FFFFFF;}')

class my_gb(QGroupBox):
    def __init__(self, parent):
        QGroupBox.__init__(self, parent)
        self.setStyleSheet("QGroupBox{color: #E6E6E6 ;border-color: #242424;}")

class my_slider(QSlider):
    def __init__(self, direction, parent):
        QSlider.__init__(self, direction, parent)
        # self.setStyleSheet("QSlider{color: #E6E6E6 ;border-color: #242424;}")

#000000; color: #000000;}') #000000; color: #E6E6E6;}') #424242; color: #E6E6E6;}') #424242; color: #E6E6E6;}') #000000; color: #E6E6E6;}') #000000; color: #E6E6E6;}') #000000; color: #E6E6E6;}') #242424; color: #E6E6E6;}') #E6E6E6;}') #242424; color: #E6E6E6;}') #FFFFFF; color: #FFFFFF;}') #E6E6E6 ;border-color: #242424;}") # self.setStyleSheet("QSlider{color: #E6E6E6 ;border-color: #242424;}")