I use gpg-agent sometimes with no X display or over ssh, so my config file contains:
pinentry-program /usr/bin/pinentry-curses
This way, the gpg passphrase is requested in curses.
That said, in some graphical scripts, I wish to use the GTK pinentry instead. How to call gpg and temporarily use a different pinentry?