From 7de7e6b79cd671578304bd27a4169627a80e8b67 Mon Sep 17 00:00:00 2001 From: Gerhard Kitzler Date: Fri, 31 Jan 2014 09:36:34 +0000 Subject: [PATCH] Added changes for batchmode --- ng/ng.tcl | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ng/ng.tcl b/ng/ng.tcl index bb440808..49af771e 100644 --- a/ng/ng.tcl +++ b/ng/ng.tcl @@ -1,7 +1,15 @@ -if {[catch {package require Tix } result ]} { - puts "cannot load package Tix" - puts "error : $result" +set batchmode [Ng_GetCommandLineParameter batchmode] +if {$batchmode=="undefined"} { + if {[catch {package require Tix } result ]} { + puts "cannot load package Tix" + puts "error : $result" + } } +# if {[catch {package require Togl 2.0 } result ]} { +# puts "cannot load package Togl 2.0" +# puts "error : $result" +# } + # if {[catch {package require Togl 2.0 } result ]} { # puts "cannot load package Togl 2.0"