diff options
Diffstat (limited to 'Master/tlpkg/tlperl/lib/auto/Tk/Widget/AmpWidget.al')
-rwxr-xr-x | Master/tlpkg/tlperl/lib/auto/Tk/Widget/AmpWidget.al | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl/lib/auto/Tk/Widget/AmpWidget.al b/Master/tlpkg/tlperl/lib/auto/Tk/Widget/AmpWidget.al new file mode 100755 index 00000000000..c98f42d38db --- /dev/null +++ b/Master/tlpkg/tlperl/lib/auto/Tk/Widget/AmpWidget.al @@ -0,0 +1,36 @@ +# NOTE: Derived from blib\lib\Tk\Widget.pm. +# Changes made here will be lost when autosplit is run again. +# See AutoSplit.pm. +package Tk::Widget; + +#line 1614 "blib\lib\Tk\Widget.pm (autosplit into blib\lib\auto\Tk\Widget\AmpWidget.al)" +# ::tk::AmpWidget -- +# Creates new widget, turning -text option into -text and +# -underline options, returned by ::tk::UnderlineAmpersand. +# +sub AmpWidget +{ + my ($w,$class,%args) = @_; + my @options; + while(my($opt,$val) = each %args) + { + if ($opt eq "-text") + { + my ($newtext,$under) = $w->UnderlineAmpersand($val); + push @options, -text => $newtext, -underline => $under; + } + else + { + push @options, $opt, $val; + } + } + my $result = $w->$class(@options); + if ($result->can('AmpWidgetPostHook')) + { + $result->AmpWidgetPostHook; + } + return $result; +} + +# end of Tk::Widget::AmpWidget +1; |