Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Simple question. Is it possible to override - locally or globally - the standard icons the come with the MessageBox, possibly with .png?

my $answer = $mw->messageBox( -icon => 'question', -type => 'yesno', -title => 'Some Message', -message => 'Do you like me so far?', );

Replies are listed 'Best First'.
Re: Tk override standard icons MessageBox
by Anonymous Monk on Dec 03, 2019 at 02:04 UTC

    Simple question. Is it possible to override - locally or globally - the standard icons the come with the MessageBox, possibly with .png?

    Hi

    Have you looked at the code? Or at the $mw->WidgetDump?

    Of course its possible

      Yes, I did, but did not help.

      There is no .pm for messageBox. I guess it is composite on the run (not expert at all). And I could not make out where icons are generated.

      $mw->WidgetDump did not say anything special about the Widget