zoukankan      html  css  js  c++  java
  • Widget

    class child {
          inherit itk::Widget  
          public variable child_a
          constructor { args }  {

           itk_component add menu_frame {
            frame $itk_interior.mf \
                -bd 1 \
                -relief solid
            } 
           itk_component add label {
      label $itk_interior.mf.l1 \
           -text "Name"
      }
          
          
           itk_component add toolbar_frame {
             frame $itk_interior.tbf \
          -bd 1 \
          -relief solid
      }      
     
           itk_component add label2 {
         label $itk_interior.tbf.label \
             -text "Images" \
             -font 12 \
             -anchor w
            } {
         usual
         ignore -font
      }
          
           grid $itk_component(menu_frame) -row 0 -column 0 -sticky nswe
           pack $itk_component(label)      
     
           grid $itk_component(toolbar_frame) -row 1 -column 0 -sticky nswe
           pack $itk_component(label2) -side left -padx 5 -pady 5 -fill both -expand 1
           eval itk_initialize $args
          }
    }


    child .aa
    pack .aa

  • 相关阅读:
    第十六节 URL映射的时候指定默认参数
    第十五节 自定义path转换器
    第十四节 reverse函数补充
    第十一节 实例命名空间
    第十节 url命名和应用命名空间
    第八节 url解释器
    MySQL条件查询
    MySQL判断数据是否为空
    MySQL拼接字符串
    MySQL加号+ 的作用
  • 原文地址:https://www.cnblogs.com/greencolor/p/2128793.html
Copyright © 2011-2022 走看看