Re: [Tkinter-discuss] Posible SPAM: Re: simple scrollbar... not so simple

2010-11-25 Thread Michael O'Donnell
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["

Re: [Tkinter-discuss] how make active python 3 use active tcl on mac os?

2010-11-25 Thread Michael O'Donnell
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 > ,

Re: [Tkinter-discuss] how make active python 3 use active tcl on mac os?

2010-11-25 Thread Michael Lange
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

Re: [Tkinter-discuss] simple scrollbar... not so simple

2010-11-25 Thread Michael Lange
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

Re: [Tkinter-discuss] simple scrollbar... not so simple

2010-11-25 Thread Sorin Schwimmer
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