| Newsgroups |
gmane.comp.lang.perl.tk |
| Message-ID |
<[email protected]> |
Duncan Ferguson <[email protected]> wrote:
> Is eventGenerate limited to only those windows the current invocation of
> Tk is aware of? If so, is there any way (via Tk) to access XSendEvent
> directly?
I am not sure about the availability of XSendEvent from Perl/Tk, but
it is possible to use X11::Protocol and Tk together.
Regards,
Slaven
>
> Duncs
>
> Duncan Ferguson wrote:
>
> > I am attempting to send a key press event I receive in one window to a
> > specific window ID but the eventGenerate docs seem a little sparse on
> > how to do this.
> >
> > Here is a snippet of code
> > $windows{main_window}->eventGenerate(
> > '<KeyPress>',
> > -keysym => $Tk::event->K,
> > -root => $client_window_id,
> > );
> >
> > but I keep getting the error:
> >
> > Tk::Error: bad window name/identifier "50331666" at
> > /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/Tk/Submethods.pm
> > line 19.
> >
> > So, how i am calling this wrong? The window identifier does exist and
> > has been checked with xwininfo (but wasnt created as part of this perl
> > code).
> >
> > This is with perl v5.8.5, Tk 804.07 on Fedora Core 3
> >
> > Thanks
> >
> > Duncs
> >
> > -----------------------------------------
> > This private and confidential e-mail has been sent to you by Egg. The
> > Egg
> > group of companies includes Egg Banking plc registered no. 2999842), Egg
> > Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd
> > (registered no. 3403963) which is authorised and regulated by the
> > Financial
> > Services Authority. Egg Investments Ltd. is entered in the FSA register
> > under number 190518. Registered in England and Wales. Registered
> > offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you
> > are not the intended recipient of this e-mail and have received it in
> > error, please notify the sender by replying with 'received in error'
> > as the
> > subject and then delete it from your mailbox.
> >
> > -++**==--++**==--++**==--++**==--++**==--++**==--++**==
> > This message was posted through the Stanford campus mailing list
> > server. If you wish to unsubscribe from this mailing list, send the
> > message body of "unsubscribe ptk" to [email protected]
>
>
> -----------------------------------------
> This private and confidential e-mail has been sent to you by Egg. The Egg
> group of companies includes Egg Banking plc registered no. 2999842), Egg
> Financial Products Ltd (registered no. 3319027) and Egg Investments Ltd
> (registered no. 3403963) which is authorised and regulated by the Financial
> Services Authority. Egg Investments Ltd. is entered in the FSA register
> under number 190518. Registered in England and Wales. Registered
> offices: 1 Waterhouse Square, 138-142 Holborn, London EC1N 2NA. If you
> are not the intended recipient of this e-mail and have received it in
> error, please notify the sender by replying with 'received in error' as the
> subject and then delete it from your mailbox.
>
> -++**==--++**==--++**==--++**==--++**==--++**==--++**==
> This message was posted through the Stanford campus mailing list
> server. If you wish to unsubscribe from this mailing list, send the
> message body of "unsubscribe ptk" to [email protected]
--
__o Slaven Rezic
_`\<,_ slaven <at> rezic <dot> de
__(_)/ (_)____
______________________________________________________________________________
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to [email protected]