summaryrefslogtreecommitdiff
path: root/tropical/qt/createcalendar.py
diff options
context:
space:
mode:
authorLoïc Guégan <loic.guegan@mailbox.org>2024-09-16 15:13:37 +0200
committerLoïc Guégan <loic.guegan@mailbox.org>2024-09-16 15:13:37 +0200
commit2a05198441689b5f9c50dca3d0ca7b655ff990ca (patch)
treea641cc89b9547ce9941cc509243fed26df8bd07d /tropical/qt/createcalendar.py
parent8e9382394524e1b8b6d233f4cba6575b7fecce21 (diff)
Minor changes
Diffstat (limited to 'tropical/qt/createcalendar.py')
-rw-r--r--tropical/qt/createcalendar.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tropical/qt/createcalendar.py b/tropical/qt/createcalendar.py
new file mode 100644
index 0000000..df16277
--- /dev/null
+++ b/tropical/qt/createcalendar.py
@@ -0,0 +1,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!")