parameters: (self,id,control,event)
docstring: Events from the Blackbar dialog... that it couldn't handle
docstring_summary: Events from the Blackbar dialog... that it couldn't handle
docstring_tokens: Events from the Blackbar dialog ... that it couldn t handle
function: def OnGUINotify(self,id,control,event):
          "Events from the Blackbar dialog... that it couldn't handle"
          global PantNames
          global ShirtNames
          global Tints
          #PtDebugPrint("dialogClothes::OnGUINotify id=%d, event=%d control=" % (id,event),control )
          # make sure this is from the Blackbar
          if id == KIBlackbar.id:
              # is it one of the buttons?
              if isinstance(control,ptGUIControlRadioGroup):
                  rgID = control.getTagID()
                  if rgID == kPantRadioGroupID:
                      pantIdx = control.getValue()
                      if pantIdx >= 0 and pantIdx < len(PantNames):
                          self.IWearPants(PantNames[pantIdx])
                  elif rgID == kShirtRadioGroupID:
                      shirtIdx = control.getValue()
                      if shirtIdx >= 0 and shirtIdx < len(ShirtNames):
                          self.IWearShirt(ShirtNames[shirtIdx])
                  elif rgID == kTintRadioGroupID:
                      colorIdx = control.getValue()
                      #PtDebugPrint("xDialogClothingBB: colorRG says go to colorIdx %d" % (colorIdx))
                      if colorIdx >= 0 and colorIdx < len(Tints):
                          self.IColorShirt(Tints[colorIdx])
                  else:
                      PtDebugPrint("xDialogClothingBB: Can't find which radiogroup was hit  rgID=%d" % (rgID))
function_tokens: def OnGUINotify ( self , id , control , event ) : global PantNames global ShirtNames global Tints #PtDebugPrint("dialogClothes::OnGUINotify id=%d, event=%d control=" % (id,event),control ) # make sure this is from the Blackbar if id == KIBlackbar . id : # is it one of the buttons? if isinstance ( control , ptGUIControlRadioGroup ) : rgID = control . getTagID ( ) if rgID == kPantRadioGroupID : pantIdx = control . getValue ( ) if pantIdx >= 0 and pantIdx < len ( PantNames ) : self . IWearPants ( PantNames [ pantIdx ] ) elif rgID == kShirtRadioGroupID : shirtIdx = control . getValue ( ) if shirtIdx >= 0 and shirtIdx < len ( ShirtNames ) : self . IWearShirt ( ShirtNames [ shirtIdx ] ) elif rgID == kTintRadioGroupID : colorIdx = control . getValue ( ) #PtDebugPrint("xDialogClothingBB: colorRG says go to colorIdx %d" % (colorIdx)) if colorIdx >= 0 and colorIdx < len ( Tints ) : self . IColorShirt ( Tints [ colorIdx ] ) else : PtDebugPrint ( "xDialogClothingBB: Can't find which radiogroup was hit  rgID=%d" % ( rgID ) )