Textview



hi all
i ve got a problem with this par of a programm

        my $textview = new Gtk2::TextView;
        $textview->set (editable => FALSE);
        
        open ('TEST',"<./text/test.txt");
        if (! open ('TEST',"<./text/test.txt"))
        {
        print "Error\n";
        }
        my @text = <TEST>;
        close 'TEST';

        my $scrolledwindow = Gtk2::ScrolledWindow->new( undef , undef );
        $scrolledwindow->set_policy( 'never' , 'automatic' );
        $table->attach_defaults( $scrolledwindow , 1 , 7 , 3 , 18 ) ;
        $textview->show;
        $scrolledwindow->add_with_viewport ( $textview );
        $scrolledwindow->show();


I didn't manage to find the command to show the whole "test.txt" file in
the textview. Can someone help for this. Thanx :)





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]