.\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "POE::Loop::Tk 3pm" .TH POE::Loop::Tk 3pm "2022-06-18" "perl v5.34.0" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh sub skip_tests { return \*(L"Tk needs a \s-1DISPLAY\s0 (set one today, okay?)\*(R" unless ( (defined \f(CW$ENV\fR{\s-1DISPLAY\s0} and length \f(CW$ENV\fR{\s-1DISPLAY\s0}) or $^O eq \*(L"MSWin32\*(R" ); my \f(CW$test_name\fR = shift; if ($test_name eq \*(L"k_signals_rerun\*(R" and $^O eq \*(L"MSWin32\*(R") { return \*(L"This test crashes Perl when run with Tk on $^O\*(R"; } return \*(L"Tk tests require the Tk module\*(R" if do { eval \*(L"use Tk\*(R"; $@ }; my \f(CW$m\fR = eval { Tk::MainWindow\->\fBnew()\fR }; if ($@) { my \f(CW$why\fR = $@; \f(CW$why\fR =~ s/ at .*//; return \*(L"Tk couldn't be initialized: \f(CW$why\fR\*(R"; } return; } .SH "NAME" POE::Loop::Tk \- a bridge that allows POE to be driven by Tk .SH "SYNOPSIS" .IX Header "SYNOPSIS" See POE::Loop. .PP .Vb 2 \& use Tk; \& use POE; \& \& # Rest of your program here. .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" POE::Loop::Tk replaces \s-1POE\s0's internal event loop with the Tk module. This allows programs to use both \s-1POE\s0 and Tk at the same time. .PP POE::Loop::Tk implements the interface documented in POE::Loop. Therefore it has no documentation of its own. Please see POE::Loop for more details. .PP POE::Loop::Tk is one of two versions of the Tk event loop bridge. The other, POE::Loop::TkActiveState accommodates behavior differences in ActiveState's build of Tk. Both versions share common code in POE::Loop::TkCommon. POE::Loop::Tk dynamically selects the appropriate event loop bridge based on the runtime environment. .SH "SEE ALSO" .IX Header "SEE ALSO" \&\s-1POE\s0, POE::Loop, Tk, POE::Loop::TkCommon, POE::Loop::PerlSignals. .SH "AUTHORS & LICENSING" .IX Header "AUTHORS & LICENSING" POE::Loop::Tk is Copyright 1998\-2013 Rocco Caputo. All rights reserved. POE::Loop::Tk is free software; you may redistribute it and/or modify it under the same terms as Perl itself.