zoukankan      html  css  js  c++  java
  • uplevel

    class Imagenumbers {
     
       inherit itk::Widget

       itk_option define -command command Command ""

       constructor { args } { }
    }

    body Imagenumbers::constructor { args } {
        # create dummy gEntry to allow options to be kept!
        itk_component add dummy {
     gEntry $itk_interior.dummy
        } {
     usual
        }
        eval itk_initialize $args
    }

    body Imagenumbers::execute { an_index } {
        if {$itk_option(-command) != ""} {
     set l_num_list [uncompressNumList [$itk_component(entry$an_index) query]]
     uplevel \#0 $itk_option(-command) $templates_by_index($an_index) [list $l_num_list]

    ##     Here just run as
    ##     Indexwizard::chooseImages $templates_by_index($an_index) [list $l_num_list]
        }
    }

    body Indexwizard::constructor { args } {
        itk_component add image_numbers {
     Imagenumbers $itk_interior.sfp.isf.in \
         -command [code $this chooseImages]
        }
    }


     

  • 相关阅读:
    代码块&继承&final关键字
    Java基础
    我的学习笔记
    CF743C 题解
    洛谷P4180 题解
    洛谷P3402 题解
    洛谷P3919 题解
    Noi.ac#30 题解
    Noi.ac #65题解
    Noi.ac #51题解
  • 原文地址:https://www.cnblogs.com/greencolor/p/2168135.html
Copyright © 2011-2022 走看看