Hello,
The new 3.0 release brings some incompatibilities that brake previous code.
I moved to WxPython 3.0 using conda install with anaconda 1.9 on win7 64 bit
With this upgrade move my application MIST no longer behaves as before. Here is a link tot he code I am running for reference:
Here are issues I discovered in a few minutes of playing with the app:
1. Upon launch the following warning message appear:
Main.py:527: wxPyDeprecationWarning: Using deprecated class PySimpleApp.
app = wx.PySimpleApp(0)
Main.py:528: wxPyDeprecationWarning: Call to deprecated item 'InitAllImageHandlers'.
wx.InitAllImageHandlers()
2. When making changes in combo boxes in the application - the following warning appear that do not make sense:
C:\Users\Work\Desktop\MIST\CDMLib.py:1781: wxPyDeprecationWarning: Call to deprecated item 'GetRange'. Use `GetRange` instead.
return str(self.GetTextCtrl().GetString(0,-1))
C:\Users\Work\Desktop\MIST\CDMLib.py:2094: wxPyDeprecationWarning: Call to deprecated item 'GetRange'. Use `GetRange` instead.
RawString = self.GetString(0,-1)
C:\Users\Work\Desktop\MIST\CDMLib.py:1316: wxPyDeprecationWarning: Call to deprecated item 'GetRange'. Use `GetRange` instead.
value = ctrl.GetString(0,-1)
Note that the warning message is self repeating - I assume the meaning is: GetString is deprecated - call GetRange - yet correct me if I am wrong.
3. In a specific case in the project form it is not possible to change text in a combo box by typing - the behavior changed to the degree it hurts the user
4. Windows that are supposed to be modal and by this block access to the parent form are no longer modal. This is unfortunate since the app is designed not to allow it the modality is important.
I assume that replacing the old deprecated code with newer functions may fix some of those issues - however, I could not find documentation of replacement with a Google search of deprecated - can someone point me to the replacements and give some advice to help migrate this code?
I hope there is a simple solution.
Jacob