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

  • 相关阅读:
    xadmin修改list_export_fields不生效以及添加exclude_export_fields功能
    Python正则总结
    Ubuntu安装Gitlab简记
    pytest使用总结笔记
    unittest使用数据驱动ddt
    unittest使用总结
    HTTP知识点总结
    HTTPS加密流程理解
    Requests库使用总结
    leetcode 76:最小字符串
  • 原文地址:https://www.cnblogs.com/greencolor/p/2128793.html
Copyright © 2011-2022 走看看