\documentclass{beamer}
\usepackage{pgf-pie}
\begin{document}

\frame{
    \begin{tikzpicture}
    \pie{10/A,20/B,30/C,40/D}
    \end{tikzpicture}
    }

\end{document}
