Perl-Tk, copy/paste context-menu for entries

Perl-Tk, copy/paste context-menu for entries

am 09.08.2009 13:31:30 von Mishustin Alexey

Hi,

Another question about Perl-Tk.

I need to make context-menus with 'Copy' and 'Paste' commands for
'entry' widgets. I found the following syntax for it.

my $popup = $mwindow->Menu(
-tearoff => 0,
-menuitems => [
[Button => 'Copy', -command => [\©]],
[Button => 'Paste', -command => [\&paste]]
]
);
$where_entry->bind(
"" => sub {$popup->Popup(
-popover => "cursor",
-popanchor => 'nw'
)}
);
$limit_entry->bind(
"" => sub{$popup->Popup(
-popover => "cursor",
-popanchor => 'nw'
)}
);

sub copy {
#?
}

sub paste {
#?
}

The question is: how to pass the event widget name to subroutines
($where_entry or $limit_entry)?

--
Regards,
Alex


--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Perl-Tk, copy/paste context-menu for entries

am 09.08.2009 13:40:00 von shawnhcorey

Mishustin Alexey wrote:
> Hi,
>
> Another question about Perl-Tk.

Try asking on the Beginners Perl/Tk list
http://lists.cpan.org/showlist.cgi?name=beginning_perl_tk


--
Just my 0.00000002 million dollars worth,
Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Perl-Tk, copy/paste context-menu for entries

am 09.08.2009 13:46:55 von Mishustin Alexey

В Вск, 09/08/2009 в 07:40 -0400, Shawn H. Corey =
пишет:
> Mishustin Alexey wrote:
> > Hi,
> >=20
> > Another question about Perl-Tk.
>=20
> Try asking on the Beginners Perl/Tk list=20
> http://lists.cpan.org/showlist.cgi?name=3Dbeginning_perl_tk

OK, thank you.

--=20
Regards,
Alex


--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Perl-Tk, copy/paste context-menu for entries

am 09.08.2009 16:09:01 von Mishustin Alexey

В Вск, 09/08/2009 в 07:40 -0400, Shawn H. Corey =
пишет:=20
> Mishustin Alexey wrote:
> > Hi,
> >=20
> > Another question about Perl-Tk.
>=20
> Try asking on the Beginners Perl/Tk list=20
> http://lists.cpan.org/showlist.cgi?name=3Dbeginning_perl_tk

This mailing list seems to be dead; nothing but spam for the last
months.

--=20
Regards,
Alex


--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Perl-Tk, copy/paste context-menu for entries

am 09.08.2009 21:30:46 von shawnhcorey

Mishustin Alexey wrote:
> В Вск, 09/08/2009 в 07:40 -0400, Shawn H. Corey пишет:
>> Mishustin Alexey wrote:
>>> Hi,
>>>
>>> Another question about Perl-Tk.
>> Try asking on the Beginners Perl/Tk list
>> http://lists.cpan.org/showlist.cgi?name=beginning_perl_tk
>
> This mailing list seems to be dead; nothing but spam for the last
> months.
>

Sorry, I don't know any good resources for Perl/Tk. When all else
fails, try perlmonks http://perlmonks.org/


--
Just my 0.00000002 million dollars worth,
Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Perl-Tk, copy/paste context-menu for entries

am 09.08.2009 22:55:17 von Mishustin Alexey

В Вск, 09/08/2009 в 15:30 -0400, Shawn H. Corey =
пишет:
> Mishustin Alexey wrote:
> > В Вск, 09/08/2009 в 07:40 -0400, Shawn H. Core=
y пишет:=20
> >> Mishustin Alexey wrote:
> >>> Hi,
> >>>
> >>> Another question about Perl-Tk.
> >> Try asking on the Beginners Perl/Tk list=20
> >> http://lists.cpan.org/showlist.cgi?name=3Dbeginning_perl_tk
> >=20
> > This mailing list seems to be dead; nothing but spam for the last
> > months.
> >=20
>=20
> Sorry, I don't know any good resources for Perl/Tk. When all else=20
> fails, try perlmonks http://perlmonks.org/

Thank you, Shawn. I'll try it too.

--=20
Regards,
Alex


--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: Perl-Tk, copy/paste context-menu for entries

am 10.08.2009 07:58:37 von Mishustin Alexey

8/9/2009, "Shawn H. Corey" âû ïèñàëè:

>Sorry, I don't know any good resources for Perl/Tk. When all else
>fails, try perlmonks http://perlmonks.org/

Perlmonks is great! I've already got the answer on my question. Thank
you for your advice again.

--
Regards,
Alex

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/