135 ) |
135 ) |
136 .normalized() |
136 .normalized() |
137 .adjusted(-extra, -extra, extra, extra) |
137 .adjusted(-extra, -extra, extra, extra) |
138 ) |
138 ) |
139 |
139 |
140 def paint(self, painter, option, widget=None): # noqa: U100 |
140 def paint(self, painter, option, _widget=None): |
141 """ |
141 """ |
142 Public method to paint the item in local coordinates. |
142 Public method to paint the item in local coordinates. |
143 |
143 |
144 @param painter reference to the painter object |
144 @param painter reference to the painter object |
145 @type QPainter |
145 @type QPainter |
146 @param option style options |
146 @param option style options |
147 @type QStyleOptionGraphicsItem |
147 @type QStyleOptionGraphicsItem |
148 @param widget optional reference to the widget painted on |
148 @param _widget optional reference to the widget painted on (unused) |
149 @type QWidget |
149 @type QWidget |
150 """ |
150 """ |
151 width = ( |
151 width = ( |
152 2 |
152 2 |
153 if ( |
153 if ( |