Tkx-TclTk-Bind-IWidgets
view release on metacpan or search on metacpan
lib/Tkx/TclTk/Bind/IWidgets.pm view on Meta::CPAN
my $temp_dir = load_library( 'iwidgets', 'iwidgets4.0.2' );
# --- Steuervariablen belegen -----------------------------------------------
my $path_to_iwidgets_library
= File::Spec->catfile( $temp_dir, 'iwidgets4.0.2' );
my $path_to_itk_library = File::Spec->catfile( $temp_dir, 'itk3.4' );
my $path_to_itcl_library = File::Spec->catfile( $temp_dir, 'itcl3.4' );
# --- Environment-Variablen setzen ------------------------------------------
Env::C::setenv( 'ITCL_LIBRARY', $path_to_itcl_library );
Env::C::setenv( 'ITK_LIBRARY', $path_to_itk_library );
# --- IWidgets in Tkx binden ------------------------------------------------
Tkx::lappend( '::auto_path', $path_to_itk_library );
Tkx::lappend( '::auto_path', $path_to_itcl_library );
Tkx::lappend( '::auto_path', $path_to_iwidgets_library );
Tkx::package_require('Iwidgets');
} # end of sub BEGIN
# ##############################################################################
sub END {
Env::C::unsetenv('ITCL_LIBRARY');
Env::C::unsetenv('ITK_LIBRARY');
} # end of sub END
# ##############################################################################
# # E N D #
# ##############################################################################
1;
__END__
( run in 0.398 second using v1.01-cache-2.11-cpan-a1d94b6210f )