Proving the Maximum Modulus Principle using the Open Mapping Theorem

If $\frak{U}$ is an open set in $\mathbb{C}$, then $|\frak{U}|$ can have no greatest element. Thus, $|f(\frak{U})|$ is cannot have a greatest element since $f(\frak{U})$ is open.

Suppose that $f$ attains its maximum in $\frak{U}$; this means that for some $z_0\in\frak{U}$, $|f(z)|\le|f(z_0)|$ for all $z\in\frak{U}$. Thus, $|f(z_0)|$ is the greatest element of $|f(\frak{U})|$. This means that $f(\frak{U})$ is not open. Therefore, $f$ is constant.