So...
I have this cute little listbox packed at the bottom of my gui.
This worked great, until I had this crazy idea that adding a scrollbar would make the users happy.
The problem with this is that the frame (.buffer) doesn't fill up the bottom of my gui anymore. There is no behavior difference in:
pack .buffer -side bottom -fill x
and
pack .buffer -side bottom
except that the frame locates itself to the left when the "-fill" option is used. So how do I get a frame to take up all of the x space since -fill x doesn't work?
-Bones
I have this cute little listbox packed at the bottom of my gui.
Code:
listbox .transferBuffer -height 6
pack .transferBuffer -side bottom -fill x
This worked great, until I had this crazy idea that adding a scrollbar would make the users happy.
Code:
frame .buffer
listbox .buffer.transferBuffer -height 6 -yscroll ".buffer.scrollY set"
scrollbar .buffer.scrollY -command ".buffer.transferBuffer yview" -orient v
pack .buffer -side bottom -fill x
pack .buffer.transferBuffer -side left
pack .buffer.scrollY -fill y -side left
The problem with this is that the frame (.buffer) doesn't fill up the bottom of my gui anymore. There is no behavior difference in:
pack .buffer -side bottom -fill x
and
pack .buffer -side bottom
except that the frame locates itself to the left when the "-fill" option is used. So how do I get a frame to take up all of the x space since -fill x doesn't work?
-Bones