Changeset 3826


Ignore:
Timestamp:
Feb 21, 2019 10:15:15 AM (3 years ago)
Author:
vondreele
Message:

fix future problem with wx.NewId? --> wx.NewIdRef?

Location:
trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/Absorb.py

    r3771 r3826  
    1616import GSASIIElem as G2elem
    1717import GSASIIElemGUI as G2elemGUI
     18
     19try:
     20    wx.NewIdRef
     21    wx.NewId = wx.NewIdRef
     22except AttributeError:
     23    pass
    1824
    1925if '2' in platform.python_version_tuple()[0]:
  • trunk/GSASIIctrlGUI.py

    r3810 r3826  
    165165except:
    166166    # Don't depend on GUI
     167    pass
     168
     169try:
     170    wx.NewIdRef
     171    wx.NewId = wx.NewIdRef
     172except AttributeError:
    167173    pass
    168174
  • trunk/GSASIIdataGUI.py

    r3825 r3826  
    7272import defaultIparms as dI
    7373import GSASIIfpaGUI as G2fpa
     74
     75try:
     76    wx.NewIdRef
     77    wx.NewId = wx.NewIdRef
     78except AttributeError:
     79    pass
    7480
    7581# trig functions in degrees
  • trunk/GSASIIphsGUI.py

    r3805 r3826  
    6060import numpy as np
    6161import numpy.linalg as nl
     62
     63try:
     64    wx.NewIdRef
     65    wx.NewId = wx.NewIdRef
     66except AttributeError:
     67    pass
    6268
    6369VERY_LIGHT_GREY = wx.Colour(235,235,235)
  • trunk/GSASIIrestrGUI.py

    r3802 r3826  
    3434import GSASIIconstrGUI as G2cnstG
    3535import GSASIIexprGUI as G2exG
     36
     37try:
     38    wx.NewIdRef
     39    wx.NewId = wx.NewIdRef
     40except AttributeError:
     41    pass
    3642
    3743WACV = wx.ALIGN_CENTER_VERTICAL
  • trunk/fprime.py

    r3771 r3826  
    1616import GSASIIElem as G2elem
    1717import GSASIIElemGUI as G2elemGUI
     18
     19try:
     20    wx.NewIdRef
     21    wx.NewId = wx.NewIdRef
     22except AttributeError:
     23    pass
    1824
    1925if '2' in platform.python_version_tuple()[0]:
  • trunk/scanCCD.py

    r3166 r3826  
    2929npacosd = lambda x: 180.*np.arccos(x)/np.pi
    3030npasind = lambda x: 180.*np.arcsin(x)/np.pi
     31
     32try:
     33    wx.NewIdRef
     34    wx.NewId = wx.NewIdRef
     35except AttributeError:
     36    pass
    3137
    3238def create(parent):
  • trunk/testDeriv.py

    r3774 r3826  
    4040import pytexture as ptx
    4141ptx.pyqlmninit()            #initialize fortran arrays for spherical harmonics
     42
     43try:
     44    wx.NewId
     45except AttributeError:
     46    wx.NewId = wx.NewIdRef
    4247
    4348def create(parent):
  • trunk/testSSymbols.py

    r3744 r3826  
    77import GSASIIctrlGUI as G2G
    88
    9    
     9try:
     10    wx.NewIdRef
     11    wx.NewId = wx.NewIdRef
     12except AttributeError:
     13    pass
     14
    1015[wxID_FILEEXIT,
    1116] = [wx.NewId() for _init_coll_File_Items in range(1)]
  • trunk/testXNFF.py

    r3521 r3826  
    1919import atmdata
    2020WACV = wx.ALIGN_CENTER_VERTICAL
     21
     22try:
     23    wx.NewIdRef
     24    wx.NewId = wx.NewIdRef
     25except AttributeError:
     26    pass
    2127
    2228def create(parent):
Note: See TracChangeset for help on using the changeset viewer.