'Return page widget'

def get_page(self, index=None):

    if (index is None):
        widget = self.pages_widget.currentWidget()
    else:
        widget = self.pages_widget.widget(index)
    return widget.widget()
