I recently modified my program to subclass the ShowBase class instead of using DirectStart. I now have a problem with the aspect ratio. When the program first starts, the scene looks good, but if I resize the window (a wx window with an on-resize event that gives the "window-event’ event to the messenger), the ratio is wrong - it’s like the scene has been squished or stretched.
The problem may be that you’re using window-event to resize the window. You shouldn’t use this to resize it - instead, use base.win.requestProperties(WindowProperties.size(x, y)).
Otherwise, perhaps you are overriding a vital method or blocking ShowBase from catching an important event. Which methods are you overriding? Also, you have to make sure that ShowBase can still receive window-event properly to correct the aspect-ratio of the lens.