zoukankan      html  css  js  c++  java
  • grid

     constructor { args } {
      
      itk_component add tf {
       frame $itk_interior.tf
      }
      
      itk_component add fr1 {
       frame $itk_interior.tf.f1
      }
      
      itk_component add butt1 {
       button $itk_interior.tf.f1.b1 \
                     -text "a1"
         
      }
      
      itk_component add fr2 {
       frame $itk_interior.tf.f2
      }
      
      itk_component add butt2 {
       button $itk_interior.tf.f2.b2 \
                    -text "a2"
      }
      
      itk_component add fr3 {
       frame $itk_interior.tf.f3
      }
      
      itk_component add butt3 {
       button $itk_interior.tf.f3.b3 \
                    -text "a3"
      }
      
      itk_component add fr4 {
       frame $itk_interior.tf.f4
      }
      
      itk_component add butt4 {
       button $itk_interior.tf.f4.b4 \
                   -text "a4"
      }
      
      grid x  $itk_component(fr3) x  $itk_component(fr1) x 
      grid x  $itk_component(fr4) x  $itk_component(fr2) x
     
      grid columnconfigure $itk_component(tf) { 0 1 2 4} -minsize 200
      grid rowconfigure $itk_component(tf)  {0} -minsize 200
            
      pack $itk_component(tf)
      pack $itk_component(butt1)
      pack $itk_component(butt2)
      pack $itk_component(butt2)
      pack $itk_component(butt3)
      pack $itk_component(butt4)
     }

  • 相关阅读:
    MySQL 优化实施方案
    MySQL Replication 主从复制全方位解决方案
    CentOS 7.X 系统安装及优化
    W25Q32的使用
    Word分栏
    转载:STM32之中断与事件---中断与事件的区别
    常见贴片电阻的分类、功率、封装、标注规则
    导线时延
    重装系统流程
    MFC应用程序向导生成的文件
  • 原文地址:https://www.cnblogs.com/greencolor/p/2155444.html
Copyright © 2011-2022 走看看