Changeset 2159


Ignore:
Timestamp:
Mar 28, 2011 10:24:40 AM (12 years ago)
Author:
mmc
Message:

Some minor fixes to make the builder work properly. Also, moved up
"wm withdraw" command in main.tcl to avoid getting a flash on the screen.
Changed the boolean control to use yes/no instead of "yes"/"no".

Location:
trunk/gui/scripts
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/controls.tcl

    r1929 r2159  
    421421            set vwidget $_name2info($name-value)
    422422            if {[lsearch -exact {group image structure} $type] >= 0} {
    423                 if {$show} {
     423                if {$show ne "" && $show} {
    424424                    lappend showing $name
    425425                } else {
     
    429429                # show other objects, but enable/disable them
    430430                lappend showing $name
    431                 if {$show} {
     431                if {$show ne "" && $show} {
    432432                    if {[winfo exists $vwidget]} {
    433433                        $vwidget configure -state normal
  • trunk/gui/scripts/editor.tcl

    r1850 r2159  
    162162    wm deiconify $itk_component(hull)
    163163    raise $itk_component(hull)
    164     focus $itk_component(editor)
     164    focus -force $itk_component(editor)
    165165
    166166    # try to grab the pointer, and keep trying...
  • trunk/gui/scripts/main.tcl

    r2081 r2159  
    2121#  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
    2222# ======================================================================
     23
     24# take the main window down for now, so we can avoid a flash on the screen
     25wm withdraw .
     26
    2327package require Itcl
    2428package require Img
     
    184188# MAIN WINDOW
    185189# ----------------------------------------------------------------------
    186 wm withdraw .
    187190Rappture::MainWin .main -borderwidth 0
    188191.main configure -title [$tool xml get tool.title]
  • trunk/gui/scripts/switch.tcl

    r1979 r2159  
    108108        }
    109109        if {$itk_option(-showtext)} {
    110             set text "\"yes\""
     110            set text "yes"
    111111        }
    112112    } else {
     
    115115        }
    116116        if {$itk_option(-showtext)} {
    117             set text "\"no\""
     117            set text "no"
    118118        }
    119119    }
Note: See TracChangeset for help on using the changeset viewer.