Hi, From: email55555 email55555 <email55555 / gmail.com> Subject: [Tk] grid manager with '-', 'x', '^' Date: Sat, 18 Dec 2004 02:50:23 +0900 Message-ID: <91b08b8a04121709501a9ab49d / mail.gmail.com> > Is this right or do we have other trick for it ? No. TkGrid supports them. Please try the following. ------------------------------------------------ require 'tk' a = TkButton.new(:text=>'a') b = TkButton.new(:text=>'b') c = TkButton.new(:text=>'c') TkGrid.configure( a , '-', :sticky=>'news') # or Tk.grid TkGrid.configure('^', '^', b , :sticky=>'news') # or Tk.grid TkGrid.configure( c , 'x', '^', :sticky=>'news') # or Tk.grid TkGrid.columnconfigure(Tk.root, [0,1,2], :weight=>1) # or Tk.grid_columnconfig TkGrid.rowconfigure(Tk.root, [0,1,2], :weight=>1) # or Tk.grid_rowconfig Tk.root.geometry('250x250') Tk.mainloop ------------------------------------------------ -- Hidetoshi NAGAI (nagai / ai.kyutech.ac.jp)