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

nens / ThreeDiToolbox / #2592

24 Sep 2025 08:27AM UTC coverage: 34.856% (-0.3%) from 35.146%
#2592

push

coveralls-python

web-flow
Merge 660edfaba into f6f4be1e7

80 of 381 new or added lines in 42 files covered. (21.0%)

9 existing lines in 6 files now uncovered.

4876 of 13989 relevant lines covered (34.86%)

0.35 hits per line

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

45.0
/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
        pen_width: int,
17
        parent : QWidget,
18
    ):
19
        super().__init__(parent)
×
20
        self.pen_style = pen_style
×
21
        self.pen_color = pen_color
×
NEW
22
        self.pen_width = pen_width
×
NEW
23
        self.setAttribute(Qt.WidgetAttribute.WA_TransparentForMouseEvents)
×
24

25
    def paintEvent(self, event):
1✔
26
        qp = QPainter(self)
×
27
        qp.begin(self)
×
NEW
28
        pen = QPen(self.pen_color, self.pen_width, self.pen_style)
×
29
        qp.setPen(pen)
×
30
        qp.drawLine(round(0.1*self.width()), round(self.height()/2.0), round(0.9*self.width()), round(self.height()/2.0))
×
31
        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