Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Ah, progress. Thank you. My mindset had been "no globals" and I was only trying to make resources such as the new font in the screen that needed them.
As you point out, when a MainWindow invents a font, that font is available to all its children. But when I moved the fontCreate lines into the Toplevel window that was containing the Help button, I got the effect I wanted for the Help button but now that Toplevel (a child of the MainWindow) would not reinvoke because its redefinition of fonts would cause the same error. Moving the definition of the fonts all the way back into the first MainWindow solves the problem since the MainWindow is only invoked once, upon initialization of the program. But this need to create a "global" font for some button a few Toplevels down doesn't feel "right".... In reply to Re: Re: Tk fontCreate, fontNames errors (and fontDelete seems messy)
by ff
|
|