Pheraps i can't explain my self, i try to post the code so you can see where i wrong:
#......All the menu items are not showed in the code, only the part of
+ interest.....:
# OPEN FILE
+
$file->command(
-label => 'Open',
-accelerator => 'Ctrl-o',
-underline => 0,
-command => \&open_file);
$mw->bind('<Control-o>', [\&open_file]);
#SUPPORTED FILES TO OPEN
my $types_OPEN = [ ['SFF files', '.sff'],
['All Files', '*'],];
sub open_file {my $open = $mw->getOpenFile(-filetypes => $types_OPEN,
-defaultextension => '.sff');
$read_fh = IO::File->new("$open",'r');
read_text($read_fh);
}
sub read_text
{ my @lines;
@lines = <$read_fh>;
my $mw = MainWindow->new(-title=>'Colored Text');
$mw => print @lines;
MainLoop
}
........................................................
Now, the script works fine and the content of any opened file is printed out in the terminal! The problem is that i would like to print the content in a GUI windows (not only in the terminal, i'm using UBUNTU) but here the windows is opened but is blank !! Please don't call me pesky, but can you correct this script so to obtain what i need!!! TNX a lots