Gtk2-Ex-TickerView
view release on metacpan or search on metacpan
devel/Pause-backup.pm view on Meta::CPAN
=over 4
=item C<< $pause = Gtk2::Ex::TickerView::Pause->new ($tickerview) >>
Create and return a new C<Gtk2::Ex::TickerView::Pause> object which stops
the timer scrolling in C<$tickerview>. When you discard the object it
releases the pause, allowing scrolling to resume (once there's no other
Pauses, and the ticker C<run> is active, etc).
The Pause object only keeps a weak reference to C<$tickerview>, so the mere
fact you want to pause it doesn't keep it alive. This also means it's safe
to hold a pause object somewhere within C<$tickerview> itself without
creating a circular reference.
=back
=head1 SEE ALSO
L<Gtk2::Ex::TickerView>
=head1 HOME PAGE
devel/Stopper.pm view on Meta::CPAN
=over 4
=item C<< $pause = Gtk2::Ex::TickerView::Stopper->new ($tickerview) >>
Create and return a new C<Gtk2::Ex::TickerView::Stopper> object which stops
the timer scrolling in C<$tickerview>. When you discard the object it
releases the pause, allowing scrolling to resume (once there's no other
Stoppers, and the ticker C<run> is active, etc).
The Stopper object only keeps a weak reference to C<$tickerview>, so the mere
fact you want to pause it doesn't keep it alive. This also means it's safe
to hold a pause object somewhere within C<$tickerview> itself without
creating a circular reference.
=back
=head1 SEE ALSO
L<Gtk2::Ex::TickerView>
=head1 HOME PAGE
examples/poe-yahoo-quotes.pl view on Meta::CPAN
my $url = 'http://download.finance.yahoo.com/d/quotes.csv?f=sl1c1&e=.csv&s='
. join(',', map {URI::Escape::uri_escape($_)} @symbols);
print "Yahoo URL $url\n";
#-----------------------------------------------------------------------------
# $session is the toplevel POE session. Posting 'refresh_start' to it
# starts a refresh of the quotes. 'refresh_response' receives its callbacks
# from the HTTP component.
#
# $session is kept alive by the postback() held in the $refresh_button,
# otherwise session_start() would want to refcount_increment(). Because
# $refresh_button is in a global variable it in turn stays alive forever,
# hence the use of UIDESTROY in the $toplevel widget destroy handler to shut
# down everything.
#
my $session = POE::Session->create
(inline_states => { _start => \&session_start,
refresh_start => \&refresh_start,
refresh_response => \&refresh_response,
});
#-----------------------------------------------------------------------------
( run in 0.659 second using v1.01-cache-2.11-cpan-39bf76dae61 )