Re: Make a redraw happen - bug report

2008-06-05 Thread Terry Brown
On Thu, 5 Jun 2008 09:22:14 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: The future is now, provided g.newDrawing is True. Ok, I'll update cleo then. So it looks like we may be looking for a call to x.bind (or x.bind2) where x != c. Just to be sure, we is you? I.e. this is a event

Re: Make a redraw happen - bug report

2008-06-05 Thread Edward K. Ream
On Jun 5, 11:19 am, Edward K. Ream [EMAIL PROTECTED] wrote: BTW, I added yet another callback in tree.setCanvasBindings to handle tag_bind, but it looks like all or most calls to w.tag_bind(...) should be changed to c.tag_bind(w,...). The fix in on the trunk, rev 507. All unit tests pass,

Re: Make a redraw happen - bug report

2008-06-05 Thread Terry Brown
On Thu, 5 Jun 2008 11:32:36 -0700 (PDT) Edward K. Ream [EMAIL PROTECTED] wrote: BTW, I added yet another callback in tree.setCanvasBindings to handle tag_bind, but it looks like all or most calls to w.tag_bind(...) should be changed to c.tag_bind(w,...). The fix in on the trunk, rev

Re: Make a redraw happen - bug report

2008-06-05 Thread Edward K. Ream
On Thu, Jun 5, 2008 at 2:50 PM, Terry Brown [EMAIL PROTECTED] wrote: I still seem to be not getting updates from cleo's right click on an icon box context menu, and script buttons. I'll look into it. I'm still using the begin/endUpdate try/finally pattern, should I switch to something

Re: Make a redraw happen - bug report

2008-06-04 Thread Terry Brown
Ok, this looks like a bug. Run this really annoying script: def addchild(tag, keywords): p = keywords.get('new_p') c = keywords.get('c') c.beginUpdate() try: n = p.insertAsNthChild(0) c.setHeadString(n, 'new') finally: c.endUpdate() import

Re: Make a redraw happen - bug report

2008-06-04 Thread Edward K. Ream
On Wed, Jun 4, 2008 at 1:11 PM, Terry Brown [EMAIL PROTECTED] wrote: Ok, this looks like a bug. the point is that the redraw only occurs when you click the headline, not the icon box, even though the script runs and the addition occurs when you click the icon box. g.newDrawing controls

Re: Make a redraw happen - bug report

2008-06-04 Thread Edward K. Ream
On Wed, Jun 4, 2008 at 2:55 PM, Edward K. Ream [EMAIL PROTECTED] wrote: To make this new scheme work all the event handlers must call c.outerUpdate. Apparently, I missed one. Now I remember. Most calls to w.bind(...) got changed to c.bind(w,...) c.bind defines a callback which calls the