'Hello world', Button

The mandatory example:

$Spc::res_h{ blsc} = "hello";
$Spc::res_h{ hello_title} = { text => "Hello"}; 
$Spc::res_h{ hello_b1} = { name => "Press me",
			   command => sub { Util::log( "hello world");}};

The BLSCs can be found in the Misc popup menu of the TkI toplevel widget. The GUI is displayed in figure 14.1. It displays a button, 'Press me', which sends the string 'hello world' to the log window of the TkI toplevel widget once it is pressed. Here are some details about the code:

Figure 14.1: Hello World
Image blsc_hello