I finally find a hack that make the window correctly resized, but it’s really ugly:
base.win.setWindowEvent('event_temp')
self.accept('event_temp',self.window_event_temp)
self.ignore('window-event')
self.accept('window-event', self.resize_window)
def window_event_temp(self,win):
messenger.send('window-event',[1,])
def resize_window(self,win=None):
x = base.win.getXSize()
y = base.win.getYSize()
self.resize_aspect2d()
The [1,] parameter is the key, if i pass win as argument, nothing change ( I 've still got the bad resize ) , but i supposed that the window handler try to do thing with the window passed in parameter, so i sent it a bad one, and i still do that i should, acceding the window with base.win.