1 from python_qt_binding.QtCore 
import QRectF
 
    2 from python_qt_binding.QtWidgets 
import QAbstractGraphicsShapeItem
 
    8         super(QGraphicsBox3dItem, self).
__init__()
 
   14     def paint(self, painter, option, widget):
 
   20         painter.drawRect(rectangle)
 
   22         painter.drawLine(rectangle.topLeft().x() + self.
_bounding_box.height() * 0.1,
 
   27         painter.drawLine(rectangle.topLeft().x() + self.
_bounding_box.height() * 0.1,
 
   30                          rectangle.topLeft().y())
 
   34                          rectangle.topRight().x(),
 
   35                          rectangle.topRight().y())
 
   37         painter.drawLine(rectangle.bottomRight().x() + 1,
 
   38                          rectangle.bottomRight().y() - 1,
 
   40                          rectangle.bottomRight().y() - self.
_bounding_box.height() * 0.1)