mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-10-27 03:43:41 +00:00
add background settings to the tooltip
This commit is contained in:
@ -201,6 +201,8 @@ class pyTextWidget(plasmascript.Applet):
|
||||
# graphical tooltip
|
||||
self.tooltipScene = QGraphicsScene()
|
||||
self.tooltipView = QGraphicsView(self.tooltipScene)
|
||||
self.tooltipView.setStyleSheet("background: transparent")
|
||||
self.tooltipView.setContentsMargins(0, 0, 0, 0)
|
||||
self.tooltipView.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
||||
self.tooltipView.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
||||
# show tooltip
|
||||
|
||||
Reference in New Issue
Block a user