parameters: (btn)
return_statement: return
docstring: Drops and item to the ground.
docstring_summary: Drops and item to the ground.
docstring_tokens: Drops and item to the ground .
function: def OnDragItemGround (btn):
  	"""Drops and item to the ground."""
  	
  	pc = GemRB.GameGetSelectedPCSingle ()
  	slot = btn.Value
  
  	GemRB.GetView ("MsgSys").SetText ("")
  
  	if GemRB.IsDraggingItem ()==0:
  		slot_item = GemRB.GetContainerItem (pc, slot)
  		item = GemRB.GetItem (slot_item["ItemResRef"])
  		GemRB.DragItem (pc, slot, item["ItemIcon"], 0, 1) #container
  		if GameCheck.IsPST():
  			GemRB.PlaySound (item["DescIcon"])
  	else:
  		GemRB.DropDraggedItem (pc, -2) #dropping on ground
  
  	UpdateInventoryWindow ()
  	return
function_tokens: def OnDragItemGround ( btn ) : pc = GemRB . GameGetSelectedPCSingle ( ) slot = btn . Value GemRB . GetView ( "MsgSys" ) . SetText ( "" ) if GemRB . IsDraggingItem ( ) == 0 : slot_item = GemRB . GetContainerItem ( pc , slot ) item = GemRB . GetItem ( slot_item [ "ItemResRef" ] ) GemRB . DragItem ( pc , slot , item [ "ItemIcon" ] , 0 , 1 ) #container if GameCheck . IsPST ( ) : GemRB . PlaySound ( item [ "DescIcon" ] ) else : GemRB . DropDraggedItem ( pc , - 2 ) #dropping on ground UpdateInventoryWindow ( ) return