How to make a scrollable frame with canvas in Ruby TK?
问题 I need to scroll a frame that contains multiple labels. Since frames aren't scrollable, so i've choosed to use a canvas that contains a frame with these labels in it. But this would be the first time for me using a canvas, so i really don't know where to start, i ended up with this code: canvas=TkCanvas.new(root) {grid :row =>0, :column =>0} frame=TkLabelframe.new(canvas) {grid :row =>0, :column =>0} scroll=Tk::Tile::Scrollbar.new(root) {orient 'vertical'; grid :row =>0, :column =>1, :sticky