zoukankan      html  css  js  c++  java
  • Widget(toplevel) menu

    class menuthree {
     inherit itk::Widget
     constructor { args } {
    #  wm protocol [winfo toplevel $itk_component(hull)]  WM_DELETE_WINDOW [code $this shutdown]

      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 projectmenu {
          menu $itk_interior.menu.project \
       -tearoff 0
      }
      
      $itk_component(menu) add cascade \
          -label "Project" \
          -menu $itk_component(projectmenu)   
     }
    }
    menuthree .c
    pack .c

  • 相关阅读:
    实验6:Mapreduce实例——WordCount
    暑期生活10
    暑期生活9
    暑期生活8
    暑期生活7
    暑期生活6
    暑期生活5
    暑期生活4
    暑期生活3
    暑期生活2
  • 原文地址:https://www.cnblogs.com/greencolor/p/2135787.html
Copyright © 2011-2022 走看看