Replace wxPaintEvent with call to parent ::Refresh() method
Starting with wxWidgets 3.1.4, the wxPaintEvent can no longer be constructed directly.
The proposed change has been tested for several hours without any issues.
Most notably, there is no workaround needed in the 3d viewer, though this may be specific to either testing on Linux/GTK3 or to a current wxWidgets version.