Ignore:
Timestamp:
Jul 7, 2017 4:45:18 PM (4 years ago)
Author:
toby
Message:

massive changes of wxID_ ids & misc to fix undefined vars wanings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branch/2frame/GSASIIctrlGUI.py

    r2914 r2917  
    4141VERY_LIGHT_GREY = wx.Colour(235,235,235)
    4242WACV = wx.ALIGN_CENTER_VERTICAL
     43
     44################################################################################
     45#### Fixed definitions for wx Ids
     46################################################################################
     47def Define_wxId(*args):
     48    '''routine to create unique global wx Id symbols in this module.
     49    '''
     50    for arg in args:
     51        if GSASIIpath.GetConfigValue('debug') and not arg.startswith('wxID_'):
     52            print 'Problem in name',arg
     53        if arg in globals():
     54            if GSASIIpath.GetConfigValue('debug'): print arg,'already defined'
     55            continue
     56        exec('global '+arg+';'+arg+' = wx.NewId()')
    4357
    4458################################################################################
     
    33993413       
    34003414    def PageChangeEvent(self,event):
     3415        pass
    34013416#        G2frame = self.parent.G2frame
    3402         page = event.GetSelection()
     3417#        page = event.GetSelection()
    34033418#        if self.PageChangeHandler:
    34043419#            if log.LogInfo['Logging']:
Note: See TracChangeset for help on using the changeset viewer.