Today, when doing the Python script exercise, because it is to copy the online code to learn, run the script when you encounter Python prompts the following line error code:
wxpydeprecationwarning: Using deprecated class Pysimpleapp.
The solution is also very simple, is to put the countdown to the following lines in the code of the WX. Pysimpleapp () replaced by
app = wx. APP () or wx. APP (False) .
if __name__ = = ' __main__ ':
app = wx. APP ()
#app = wx. Pysimpleapp ()
frame = Refactorexample (Parent=none, Id=-1)
Frame. Show ()
App. Mainloop ()
650) this.width=650; "title=" Capture 2. JPG "src=" http://s3.51cto.com/wyfs02/M01/58/B2/wKiom1S4c8qgWEFLAATS39CNSM4744.jpg "alt=" Wkiom1s4c8qgweflaats39cnsm4744.jpg "/>
This article from "Galaxy its Lin" blog, reproduced please contact the author!
Python error Using deprecated class Pysimpleapp solution