Re: Leo 4.5 b1 coming soon. Pls test.

2008-06-24 Thread Edward K. Ream
On Mon, Jun 23, 2008 at 10:15 AM, Terry Brown [EMAIL PROTECTED]
wrote:


 Minor nit - insert-file to load a file into a node, text appears in the
 body pane.  Without doing anything else to the body pane click on
 another node.  Inserted text is lost - body for node is empty.  As long
 as you move the cursor into the body frame and press a key after
 inserting the contents, it's retained.


The fix is on the trunk: rev 580.  The fix involved added calls to
begin/endCommand.  A side effect of the fix is that insert-file is now
undoable/redoable.

Edward

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.5 b1 coming soon. Pls test.

2008-06-24 Thread Edward K. Ream
On Mon, Jun 23, 2008 at 11:20 AM, Terry Brown [EMAIL PROTECTED]
wrote:



 c.beginUpdate()
 try:
  add / change icons on some nodes
  c.setChanged(True)
 finally:
  c.endUpdate()

 seems not to give a redraw *after* a script button is pressed.

 It does give one before the action is taken, so pressing the button
 twice shows the change.


Thanks for this report.  The fix is on the trunk, rev 583.

Ensuring that c.outerUpdate always gets called has turned out to be a bit of
a project.  However, the promised simplification (not yet done) of avoiding
c.begin/endUpdate still seems to be well worth the bother.

The immediate desire to require Python 2.4 was so that it would be possible
to use the following decorators:

@leo_command # ensures that the command is a subclass of a commands class.
@leo_event_handler # ensures call to c.outerUpdate.

Edward

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.5 b1 coming soon. Pls test.

2008-06-23 Thread Terry Brown

Minor nit - insert-file to load a file into a node, text appears in the
body pane.  Without doing anything else to the body pane click on
another node.  Inserted text is lost - body for node is empty.  As long
as you move the cursor into the body frame and press a key after
inserting the contents, it's retained.

Cheers -Terry

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---



Re: Leo 4.5 b1 coming soon. Pls test.

2008-06-23 Thread Terry Brown


c.beginUpdate()
try:
  add / change icons on some nodes
  c.setChanged(True)
finally:
  c.endUpdate()

seems not to give a redraw *after* a script button is pressed.

It does give one before the action is taken, so pressing the button
twice shows the change.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
leo-editor group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~--~~~~--~~--~--~---