Hi Sorin.
Full example with at least vertical scrolling
from Tkinter import *
class ScrolledText(Frame):
def __init__(self, master, **keywords):
# Set some defaults
if not keywords.has_key("width"): keywords["width"]=24
#if not keywords.has_key("height"): keywords["
Hi David,
Sorry for a vague answer, but I had similar problems
some years ago and the solution was to recompile
python, and in a particular file put the search path
for the tk library.
Can't remember offhand which file,
Mick
On Wed, Nov 24, 2010 at 10:38 PM, Ned Deily wrote:
> In article
> ,
Hi,
Thus spoketh "Michael O'Donnell"
unto us on Thu, 25 Nov 2010 09:20:45 +0100:
> Hi David,
>
> Sorry for a vague answer, but I had similar problems
> some years ago and the solution was to recompile
> python, and in a particular file put the search path
> for the tk library.
>
> Can't rem
Hi,
Thus spoketh Sorin Schwimmer
unto us on Wed, 24 Nov 2010 15:30:34 -0800 (PST):
> Mick, you're right, Tkinter frames are not scrollable. That's why I'm
> nesting my frame into a Text widget... and am not getting anywhere :-(
That's not exactly true, for example look at the Pmw.ScrolledFrame
Mick, you saved me!
My test code looks now like this (I hope HTML tags are honoured):
from Tkinter import *
r=Tk()
tx=Text(r,width=6) # hosts the frames and allows scrollbar
sb=Scrollbar(r,command=tx.yview)
tx['yscrollcommand']=sb.set
f=Frame(tx) # hosts my stuff
tx.window_create(END,window=f)
t