parameters: (buttonName, button, step)
return_statement: return
docstring: Updates selectable buttons based upon current step.
docstring_summary: Updates selectable buttons based upon current step.
docstring_tokens: Updates selectable buttons based upon current step .
function: def SetButtonStateFromStep (buttonName, button, step):
  	"""Updates selectable buttons based upon current step."""
  
  	global CharGenWindow
  
  	state = IE_GUI_BUTTON_DISABLED
  	if buttonName == "GenderButton":
  		if step == 1:
  			state = IE_GUI_BUTTON_ENABLED
  	elif buttonName == "RaceButton":
  		if step == 2:
  			state = IE_GUI_BUTTON_ENABLED
  	elif buttonName == "ClassButton":
  		if step == 3:
  			state = IE_GUI_BUTTON_ENABLED
  	elif buttonName == "AlignmentButton":
  		if step == 4:
  			state = IE_GUI_BUTTON_ENABLED
  	elif buttonName == "AbilitiesButton":
  		if step == 5:
  			state = IE_GUI_BUTTON_ENABLED
  	elif buttonName == "SkillButton":
  		if step == 6:
  			state = IE_GUI_BUTTON_ENABLED
  	elif buttonName == "AppearanceButton":
  		if step == 7:
  			state = IE_GUI_BUTTON_ENABLED
  	elif buttonName == "NameButton":
  		if step == 8:
  			state = IE_GUI_BUTTON_ENABLED
  	elif buttonName == "AcceptButton":
  		if step == 9:
  			state = IE_GUI_BUTTON_ENABLED
  		elif GameCheck.IsBG2Demo ():
  			state = IE_GUI_BUTTON_LOCKED
  	button.SetState (state)
  
  	if state == IE_GUI_BUTTON_ENABLED:
  		button.Focus()
  		button.SetEvent (IE_GUI_BUTTON_ON_PRESS, NextPress)
  	return
function_tokens: def SetButtonStateFromStep ( buttonName , button , step ) : global CharGenWindow state = IE_GUI_BUTTON_DISABLED if buttonName == "GenderButton" : if step == 1 : state = IE_GUI_BUTTON_ENABLED elif buttonName == "RaceButton" : if step == 2 : state = IE_GUI_BUTTON_ENABLED elif buttonName == "ClassButton" : if step == 3 : state = IE_GUI_BUTTON_ENABLED elif buttonName == "AlignmentButton" : if step == 4 : state = IE_GUI_BUTTON_ENABLED elif buttonName == "AbilitiesButton" : if step == 5 : state = IE_GUI_BUTTON_ENABLED elif buttonName == "SkillButton" : if step == 6 : state = IE_GUI_BUTTON_ENABLED elif buttonName == "AppearanceButton" : if step == 7 : state = IE_GUI_BUTTON_ENABLED elif buttonName == "NameButton" : if step == 8 : state = IE_GUI_BUTTON_ENABLED elif buttonName == "AcceptButton" : if step == 9 : state = IE_GUI_BUTTON_ENABLED elif GameCheck . IsBG2Demo ( ) : state = IE_GUI_BUTTON_LOCKED button . SetState ( state ) if state == IE_GUI_BUTTON_ENABLED : button . Focus ( ) button . SetEvent ( IE_GUI_BUTTON_ON_PRESS , NextPress ) return