App::Chart::Gtk2::WeblinkMenu -- menu of weblinks for stock symbol
use App::Chart::Gtk2::WeblinkMenu; my $menu = App::Chart::Gtk2::WeblinkMenu->new;
A App::Chart::Gtk2::WeblinkMenu widget displays a menu of the weblinks (see App::Chart::Weblink) for a given stock symbol. Clicking on one of the menu items opens the corresponding weblink in a browser as per $weblink->open.
$weblink->open
+---------------------------+ | FOOEX Company Information | | Google Stock Page | | Yahoo Stock Page | +---------------------------+
Any parent menu item holding the WeblinkMenu is set sensitive or insensitive according to whether there's weblinks for the given symbol, including insensitive when the symbol is the empty string.
App::Chart::Gtk2::WeblinkMenu is a subclass of Gtk2::Menu,
App::Chart::Gtk2::WeblinkMenu
Gtk2::Menu
Gtk2::Widget Gtk2::Container Gtk2::MenuShell Gtk2::Menu App::Chart::Gtk2::WeblinkMenu
App::Chart::Gtk2::WeblinkMenu->new (key=>value,...)
Create and return a new App::Chart::Gtk2::WeblinkMenu object. Optional key/value pairs can be given to set initial properties as per Glib::Object->new.
Glib::Object->new
symbol
The stock or commodity symbol (a string) to display links for. This can be an empty string "" for no symbol (and hence no links showing).
App::Chart::Weblink, Gtk2::Menu, Gtk2::MenuItem
To install App::Chart, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Chart
CPAN shell
perl -MCPAN -e shell install App::Chart
For more information on module installation, please visit the detailed CPAN module installation guide.