php 7 Wxsim 3in1 script

Here is the solution that I have successfully used.

http://www.wxforum.net/index.php?topic=33846.msg344036#msg344036

Peter.