Upgrading from XQuartz from 2.7.9 to 2.7.11 on macOS Sierra broke IDL widgets for me:

Error pygmentizing...

The fix that worked for me were the following two commands:

Error pygmentizing...

Downgrading to 2.7.9 (but not 2.7.10) also worked for me.