http://qs321.pair.com?node_id=1050147


in reply to Re^3: perl tk frame packing question
in thread perl tk frame packing question

Yes,this is certainly happening when I restart the application. Even when my gui is getting refreshed by $mw->after() every 10 secs , the selected font is also getting lost from the itemstyles.
Please let me know how can I apply the desired font on HList effectively, I am applying it in the callback on the entire mainwindow widget as $mw->RefontTree(-font => $font) , is not that enough ?

Replies are listed 'Best First'.
Re^5: perl tk frame packing question
by stefbv (Curate) on Aug 20, 2013 at 10:13 UTC

    It's not enough because you don't call RefontTree again after destroing the HList. ItemStyle has a font option, make $font global and use it to set the font when the HList is recreated (-font => $font).