Using universal explicit formulas of abelian differentials and periods defined for degenerating families of Riemann surfaces, we show that real theta functions associated with periods of tropical curves have tropical limits as solutions to the KP hierarchy.