wxgoodies/keys.py
def get_id(id):
 """Get a new id if the provided one is None."""
 if id == None:
  id = wx.NewId()
  logger.debug('Generated new ID %s.', id)
 else:
  logger.debug('Using provided id %s.', id)
 return id
def get_id(id):
 if id == None:
  id = wx.NewId()
  logger.debug('Generated new ID %s.', id)
 else:
  logger.debug('Using provided id %s.', id)
 return id
def get_id ( id ) : if id == None : id = wx . NewId ( ) logger . debug ( 'Generated new ID %s.' , id ) else : logger . debug ( 'Using provided id %s.' , id ) return id
Get a new id if the provided one is None.
Get a new id if the provided one is None .