Message-ID: <4e01da25_1@news.mccarragher.com> From: agb Subject: Re: Tkinter/scrollbar/canvas question Newsgroups: comp.lang.python References: <56de203d-0ef4-4c19-8b5b-074c7d8e2ccc@glegroupsg2000goo.googlegroups.com> Lines: 23 User-Agent: KNode/0.10.9 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Distribution: news.mccarragher.com X-READ: -=-=-=- X-Peer: =-=-=-= Date: 22 Jun 2011 08:03:52 -0500 Organization: news.mccarragher.com Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.mb-net.net!open-news-network.org!news.mccarragher.com!news.mccarragher.com!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8203 Saul Spatz wrote: > > You need to do the update_idletasks to force the canvas to be mapped > before you figure out the bounding box. Until the canvas is mapped to the > screen, the bounding box is (0,0,1,1) so there no scrolling possible. > (You can call update_ideltasks through any widget.) Many thanks--this fixed the issue. > That said, I wonder why you're putting widgets in the frame instead of > putting objects directly on the canvas. The way you're doing it you can't > use tags, which are what really give the canvas its power. The power of canvas is not really what I'm after. What I would like is a list of checkboxes (and, in a few other frames, several buttons); if a scrollable frame were available in tkinter, I'd use that. While canvas is powerful, its power is not needed for my purposes. > > Saul -- http://gall.mine.nu free to get comics,free chat-1,dc++ (dcplusplus), mute webcache,group update program,torrent,atomic time server,tool to find your ip