rework logging, add more dataclasses, reworked config
This commit is contained in:
16
src/ui/extensions/ValidatorButton.py
Normal file
16
src/ui/extensions/ValidatorButton.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from PyQt6 import QtWidgets
|
||||
|
||||
|
||||
class ValidatorButton(QtWidgets.QToolButton):
|
||||
def __init__(self, status_tip="", *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.setToolTip(status_tip)
|
||||
|
||||
def setActiveIcon(self, icon):
|
||||
super().setIcon(icon)
|
||||
|
||||
def showStatusTip(self, event):
|
||||
if self.isEnabled():
|
||||
self.showStatusTip(event)
|
||||
else:
|
||||
self.showStatusTip(event)
|
||||
Reference in New Issue
Block a user