Hiding/showing Tkinter.Canvas items

P

Peter Otten

Before I start moving them into dark corners of the canvas - is there a way
to hide/show Tkinter canvas items without having to maintain their original
position externally? All I've found so far is sortvisu.py in the demos that
toggles their coordinates between (0,0,0,0) and the real position/size.

Thanks,
Peter
 
E

Eric Brunel

Peter said:
Before I start moving them into dark corners of the canvas - is there a way
to hide/show Tkinter canvas items without having to maintain their original
position externally? All I've found so far is sortvisu.py in the demos that
toggles their coordinates between (0,0,0,0) and the real position/size.

Thanks,
Peter

Not that I know of, and there's apparently nothing like that in the tcl/tk
manual pages. The only thing I can think of is to configure the fill and/or
outline for the items to '', making them invisible. But:
- you have to remember their original fill/outline outside the canvas
- bindings on the items still fire when they are invisible, which may not be
what you want...

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top