• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nens / ThreeDiToolbox / #2589

19 Sep 2025 08:50AM UTC coverage: 35.01% (-0.1%) from 35.146%
#2589

push

coveralls-python

web-flow
Merge 38792c162 into f6f4be1e7

62 of 260 new or added lines in 40 files covered. (23.85%)

6 existing lines in 5 files now uncovered.

4859 of 13879 relevant lines covered (35.01%)

0.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

47.37
/utils/widgets.py
1
from qgis.PyQt.QtGui import QPainter, QPen
1✔
2
from qgis.PyQt.QtGui import QColor
1✔
3
from qgis.PyQt.QtWidgets import QWidget
1✔
4
from qgis.PyQt.QtCore import Qt
1✔
5
import logging
1✔
6

7
logger = logging.getLogger(__name__)
1✔
8

9

10
class PenStyleWidget(QWidget):
1✔
11
    """A simple widget than can be used to display examples of pen styles"""
12
    def __init__(
1✔
13
        self,
14
        pen_style: Qt.PenStyle,
15
        pen_color: QColor,
16
        parent : QWidget,
17
    ):
18
        super().__init__(parent)
×
19
        self.pen_style = pen_style
×
20
        self.pen_color = pen_color
×
NEW
21
        self.setAttribute(Qt.WidgetAttribute.WA_TransparentForMouseEvents)
×
22

23
    def paintEvent(self, event):
1✔
24
        qp = QPainter(self)
×
25
        qp.begin(self)
×
26
        pen = QPen(self.pen_color, 2, self.pen_style)
×
27
        qp.setPen(pen)
×
28
        qp.drawLine(round(0.1*self.width()), round(self.height()/2.0), round(0.9*self.width()), round(self.height()/2.0))
×
29
        qp.end()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc