no display name and no $DISPLAY environment variable
while executing
"load /enadisk/commun/linux/local/ActiveTcl-8.6.11/lib/libtk8.6.so Tk"
("package ifneeded Tk 8.6.11" script)
invoked from within
"package require Tk 8"
(in namespace eval "::request" script line 12)
invoked from within
"namespace eval ::request $script"
("::try" body line 12)
OUTPUT BUFFER:
#==============================================================================
# Contains miscellaneous scaling-related utility procedures.
#
# Structure of the module:
# - Namespace initialization
# - Public utility procedures
# - Private helper procedures
#
# Copyright (c) 2020 Csaba Nemethi (E-mail: csaba.nemethi@t-online.de)
#==============================================================================
package require Tk 8
#
# Namespace initialization
# ========================
#
namespace eval scaleutil {
#
# Public procedures:
#
namespace export scaleBWidgetSpinBox scaleBWidgetComboBox \
scaleIncrDateentry scaleIncrTimeentry \
scaleIncrCombobox scaleOakleyComboboxArrow
}
#
# Public utility procedures
# =========================
#
#------------------------------------------------------------------------------
# scaleutil::scaleBWidgetSpinBox
#
# Scales a BWidget SpinBox widget of the given path name.
#------------------------------------------------------------------------------
proc scaleutil::scaleBWidgetSpinBox {w pct} {
#
# Scale the width of the two arrows, which is set to 11
#
set arrWidth [expr {11 * $pct / 100}]
$w.arrup configure -width $arrWidth
$w.arrdn configure -width $arrWidth
}
#------------------------------------------------------------------------------
# scaleutil::scaleBWidgetComboBox
#
# Scales a BWidget ComboBox widget of the given path name.
#------------------------------------------------------------------------------
proc scaleutil::scaleBWidgetComboBox {w pct} {
#
# Scale the width of the arrow, which is set to 11 or 15
#
variable onX11
set defaultWidth [expr {$onX11 ? 11 : 15}]
set width [expr {$defaultWidth * $pct / 100}]
$w.a configure -width $width
#
# Scale the width of the two scrollbars, which is set to 11 or 15
#
ComboBox::_create_popup $w
if {![Widget::theme]} {
bind $w.shell