Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

nu vot, WWWXXXAPC, dhcpd lease file "binding state", WWWXXXDOCO, how to setup procmail to process html2text, how to setup procmail html2text, WWWXXXDOCO, WWWXXXAPC., XXXCNZZZ, ss4000 recovery array

Links

XODOX
Impressum

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

Posted on 2009-08-09 13:31:30 by 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 => [\&copy]],
[Button => 'Paste', -command => [\&paste]]
]
);
$where_entry->bind(
"<Button-3>" => sub {$popup->Popup(
-popover => "cursor",
-popanchor => 'nw'
)}
);
$limit_entry->bind(
"<Button-3>" => 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/

Report this message

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

Posted on 2009-08-09 13:40:00 by 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/

Report this message

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

Posted on 2009-08-09 13:46:55 by 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/

Report this message

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

Posted on 2009-08-09 16:09:01 by 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/

Report this message

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

Posted on 2009-08-09 21:30:46 by 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/

Report this message

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

Posted on 2009-08-09 22:55:17 by 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/

Report this message

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

Posted on 2009-08-10 07:58:37 by Mishustin Alexey

8/9/2009, "Shawn H. Corey" <shawnhcorey@gmail.com> âû ïèñàëè:

>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/

Report this message