in reply to Re: Troubles when trying to use Tk conditionally
in thread Troubles when trying to use Tk conditionally
Thank you, that works.
I wrote it as bart says: it doesn't get called when no Tk module is available, so there's no error thrown there, either.