Missing column weight in entry3 Tk example


I was looking at examples in Ruby Tk and found that the grid example
is missing weight meaning that on window resize the grid stays
original size.

@@ -215,6 +206,8 @@
TkGrid.configure(l1, l2, :in=>f, :padx=>‘3m’, :pady=>‘1m’,
TkGrid.configure(l3, l4, :in=>f, :padx=>‘3m’, :pady=>‘1m’,

  • TkGrid.columnconfigure(f, [0,1], :uniform=>1)
  • TkGrid.columnconfigure(f, [0,1], :uniform=>1, :weight=>1)

Given the stickiness is set on the above lines this is probably an
omission rather than intent.

Also the buttons need an expand

@@ -37,11 +27,10 @@


  • pack(:side=>:bottom, :fill=>:x, :pady=>‘2m’)
  • pack(:side=>:bottom, :fill=>:x, :pady=>‘2m’, :expand=>true)

Please fix.

I can provide a real patch if needed.



Hi Michael,

The issue tracking is running at https://bugs.ruby-lang.org

The code repository is on https://github.com/ruby/ruby

I think the file you’re talking about is
isn’t it?

You can just fork the repository as in
Fix it locally.
Push it back to your fork at github.
Issue a Pull Request so that some developer with permission could
merge your fix into trunk.
(As in https://help.github.com/articles/using-pull-requests)

If you need assistance, just ask to the list.

If you’re not so sure about the fix, just fire an issue at the issue
tracking and keep an eye on it.

Congratulations for finding the issue.

Best regards,
Abinoam Jr.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs