code: def resizeEvent(self, event):
          
          super(XImageSlider, self).resizeEvent(event)
          
          self.recalculate()
docs: Hooks into the resize event for the slider widget to update the scene
          with the latest witdth.
          
          :param      event | <QResizeEvent>