zoukankan      html  css  js  c++  java
  • menu

    class child {
          inherit itk::Widget  
          public variable child_a
          constructor { args }  {
           itk_option add hull.width hull.height
           $itk_component(hull) configure -width 1050 -height 768 
           wm minsize [winfo toplevel $itk_component(hull)] 1050 768
           pack propagate $itk_interior 0
          
           itk_component add menu {
      menu $itk_interior.menu \
          -tearoff 0 \
          -borderwidth 1
      }
          
           [winfo toplevel $itk_component(hull)] configure \
          -menu $itk_component(menu)
          
           itk_component add sessionmenu {
       menu $itk_interior.menu.session \
           -tearoff 0
      }
          
        $itk_component(menu) add cascade \
          -label "Session" \
          -menu $itk_component(sessionmenu)

           eval itk_initialize $args
          }
    }

  • 相关阅读:
    angular模板
    Growth: 全栈增长工程师指南
    全栈增长工程师实战
    vue 快速搭建项目 iview
    ng-style
    教程视频链接
    内置对象
    对象—封装、继承
    对象—构造函数
    函数-理论
  • 原文地址:https://www.cnblogs.com/greencolor/p/2128555.html
Copyright © 2011-2022 走看看