Changeset 3807 for trunk/GSASIIdataGUI.py
- Timestamp:
- Jan 31, 2019 10:29:12 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r3806 r3807 377 377 except: 378 378 pass 379 #application.GetTopWindow().dataWindow.SendSizeEvent() 380 #application.GetTopWindow().treePanel.SendSizeEvent() 381 #application.GetTopWindow().SendSizeEvent() 379 #application.GetTopWindow().SendSizeEvent() 382 380 application.GetTopWindow().Show(True) 383 381 application.MainLoop() … … 391 389 def OnInit(self): 392 390 '''Called automatically when the app is created.''' 393 knownVersions = ['2.7','3.6','3.7' ]391 knownVersions = ['2.7','3.6','3.7','3.8'] 394 392 if platform.python_version()[:3] not in knownVersions: 395 393 dlg = wx.MessageDialog(None, … … 405 403 # save the current package versions 406 404 self.main.PackageVersions = G2fil.get_python_versions([wx, mpl, np, sp, ogl]) 407 405 if np.__version__ == '1.16.0': 406 wx.CallLater(100,self.warnNumpyVersion) 408 407 return True 408 def warnNumpyVersion(self): 409 dlg = wx.MessageDialog(self.main, 410 'version '+ np.__version__ + 411 ' of numpy produces .gpx files that are not compatible with older versions: please upgrade or downgrade numpy to avoid this version', 412 'numpy Warning',wx.OK) 413 try: 414 dlg.CenterOnParent() 415 dlg.ShowModal() 416 finally: 417 dlg.Destroy() 418 409 419 # def MacOpenFile(self, filename): 410 420 # '''Called on Mac every time a file is dropped on the app when it is running,
Note: See TracChangeset
for help on using the changeset viewer.