264 self.meths = None |
264 self.meths = None |
265 self.model = model |
265 self.model = model |
266 self.__createTexts() |
266 self.__createTexts() |
267 self.__calculateSize() |
267 self.__calculateSize() |
268 |
268 |
269 def paint(self, painter, option, widget=None): # noqa: U100 |
269 def paint(self, painter, option, _widget=None): |
270 """ |
270 """ |
271 Public method to paint the item in local coordinates. |
271 Public method to paint the item in local coordinates. |
272 |
272 |
273 @param painter reference to the painter object |
273 @param painter reference to the painter object |
274 @type QPainter |
274 @type QPainter |
275 @param option style options |
275 @param option style options |
276 @type QStyleOptionGraphicsItem |
276 @type QStyleOptionGraphicsItem |
277 @param widget optional reference to the widget painted on |
277 @param _widget optional reference to the widget painted on (unused) |
278 @type QWidget |
278 @type QWidget |
279 """ |
279 """ |
280 pen = self.pen() |
280 pen = self.pen() |
281 if ( |
281 if ( |
282 option.state & QStyle.StateFlag.State_Selected |
282 option.state & QStyle.StateFlag.State_Selected |
313 @return external state |
313 @return external state |
314 @rtype bool |
314 @rtype bool |
315 """ |
315 """ |
316 return self.external |
316 return self.external |
317 |
317 |
318 def parseItemDataString(self, version, data): # noqa: U100 |
318 def parseItemDataString(self, _version, data): |
319 """ |
319 """ |
320 Public method to parse the given persistence data. |
320 Public method to parse the given persistence data. |
321 |
321 |
322 @param version version of the data |
322 @param _version version of the data (unused) |
323 @type str |
323 @type str |
324 @param data persisted data to be parsed |
324 @param data persisted data to be parsed |
325 @type str |
325 @type str |
326 @return flag indicating success |
326 @return flag indicating success |
327 @rtype bool |
327 @rtype bool |