Debian Codegraph @

hephaestus_parts/transition.pl

raw
1
2 ## ===========================================================================
3 ## This is the transition chart portion of hephaestus
4
5 sub trans {
6 $periodic_table -> packForget() if $current =~ /$uses_periodic_regex/;
7 switch({page=>"trans", text=>'Electronic Transitions of the Emission Lines for Any Element'});
8 };
9
10
11 sub setup_trans {
12 my $frame = $_[0] -> Frame(-borderwidth=>2, -relief=>'flat');
13
14 my $transition_pic = $frame -> Photo(-file => File::Spec->catfile($hephaestus_lib, "transition.gif"));
15 $frame -> Label(-image=>$transition_pic)
16 -> pack(-anchor=>'center', -pady=>8);
17
18 return $frame;
19 };