Fix: object has no attribute 'border'
This commit is contained in:
parent
001390c160
commit
1955ae024c
@ -194,6 +194,8 @@ class ViewBox(GraphicsWidget):
|
||||
self.background.setPen(fn.mkPen(None))
|
||||
self.updateBackground()
|
||||
|
||||
self.border = fn.mkPen(border)
|
||||
|
||||
self.borderRect = QtGui.QGraphicsRectItem(self.rect())
|
||||
self.borderRect.setParentItem(self)
|
||||
self.borderRect.setZValue(1e3)
|
||||
@ -221,7 +223,6 @@ class ViewBox(GraphicsWidget):
|
||||
|
||||
self.setAspectLocked(lockAspect)
|
||||
|
||||
self.border = fn.mkPen(border)
|
||||
if enableMenu:
|
||||
self.menu = ViewBoxMenu(self)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user