Re: Frame button binding

Michael Lange <[email protected]>
Newsgroups gmane.comp.python.tkinter
Message-ID <[email protected]>
Hi,

On Tue, 6 Sep 2016 09:00:45 +0000
Vasilis Vlachoudis <[email protected]> wrote:

> Hi all,
> 
> I want to create a Scrolled Frame, it works nicely with the place
> command however when I bind the B2-Motion, and I click the middle mouse
> button on the child buttons instead of dragging it does nothing, since
> they are capturing the B2 and not propagate it to the master.
(...)

Have you tried to simply add a binding for the event to the Frame's
children, as in

b = Button(f, text="Button")
b.pack()
b.bind("<Button-2>", dragStart)     ?

Best regards

Michael

.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

No more blah, blah, blah!
		-- Kirk, "Miri", stardate 2713.6
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.