'Reimplement Qt method'

def resizeEvent(self, event):

    if ((not self.isMaximized()) and (not self.fullscreen_flag)):
        self.window_size = self.size()
    QMainWindow.resizeEvent(self, event)
    self.sig_resized.emit(event)
