<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parent_widget(self):
 """ Reimplemented to only return GraphicsItems """

        parent = self.parent()
        if parent is not None and isinstance(parent, QtGraphicsItem):
            return parent.widget