[Tkinter-discuss] Need help with a text + scrollbar widget and expansion
mannslists at invigorated.org
Wed Mar 22 03:23:26 CET 2006
Michael Lange wrote:
> On Mon, 20 Mar 2006 12:10:41 -0600 Mannequin*
> <mannslists at invigorated.org> wrote:
>> Now, if you run this, you'll notice that when you expand the window
>> horizontally ( <---> ) that the text + scrollbar widget doesn't
>> expand with the window.
>> self.bible_scroll.pack (side = RIGHT, fill = Y, expand = "yes",
>> anchor = W)
> Remove the expand='yes' from the line above.
Ah, thank you. This did exactly what I wanted. :)
I think I had this working at one point before the electricity went out
and I didn't have my laptop battery in. D'OH!
>> By the way, is there anyway to enhance the look of the Tkinter
>> widgets under Linux using what comes standard with Python. I'm
>> trying to stay as standard as I possibly can.
> You can change some of Tk's "ugly" defaults in an option database,
> that may look something like this:
> If you store this in a file "optionDB" you can apply the new defaults
> root = Tk() root.option_readfile(<path-to-optionDB>)
> I hope this helps
It does a lot. Thank you. While I was looking around the unpythonic
wiki, I ran into a something that someone using Tcl/Tk wrote to make it
look more like GTK+ 1.2.x. Once I applied those, it helped it look a bit
more 'modern' for my tastes.
More information about the Tkinter-discuss