blob: df1627786c52010f522347eee37ac7fac1f92bb8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
from PyQt6.QtWidgets import QDialog, QColorDialog
from PyQt6 import uic
class CreateCalendar(QDialog):
def __init__(self,uipath):
super(CreateCalendar,self).__init__()
uic.loadUi(uipath+"/CreateCalendar.ui",self)
self.pickerButton.setText("")
self.pickerButton.clicked.connect(self.pickupColor)
self.pickerButton.setStyleSheet("QPushButton { background-color : blue }")
def pickupColor(self):
hexValue=QColorDialog.getColor().name()
self.pickerButton.setStyleSheet("QPushButton { background-color : "+hexValue+" }")
print("TODO!")
|