By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,713 Members | 764 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,713 IT Pros & Developers. It's quick & easy.

Hiding/showing Tkinter.Canvas items

P: n/a
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
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Peter Otten wrote:
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
--
- Eric Brunel <eric dot brunel at pragmadev dot com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.