Re: delete-editor crashes Python

2011-11-14 Thread Morgul
Thank you, Edward. Regards, Morgul On 13 nov, 04:28, Edward K. Ream edream...@gmail.com wrote: On Nov 11, 6:38 am, Morgul jmfo1...@gmail.com wrote: Hi all. I've found a problem with delete-editor command. It seems to crash Python (and so Leo closes, without saving the modifications or

Re: Caution: rev 4796 removes all cruft from the high-level interface

2011-11-14 Thread Edward K. Ream
On Mon, Nov 14, 2011 at 5:12 AM, Edward K. Ream edream...@gmail.com wrote: Rev 4796 contains a long-overdue housecleaning. Running unit tests externally is a good indicator of the health of the leoBridge module, as well as an independent check of some of Leo's most important base classes. As

Re: mixed-language support wish

2011-11-14 Thread Josef
In fact, this *must* be so:  Leo's read and write logic are completely independent of language, except for comment delimiters.  In particular, they knows absolutely *nothing* about strings.  Thus, @others and section references are valid *everywhere*, even in comments and strings. Well,

Re: Caution: rev 4796 removes all cruft from the high-level interface

2011-11-14 Thread Edward K. Ream
On Nov 14, 9:12 am, Edward K. Ream edream...@gmail.com wrote: 1. At present, various frame classes all define local variations of the high-level interface.  This is a large violation of the Don't Repeat Yourself principle.  I would like to eliminate these repeats using a single base class.

Re: I forget, is there a view only @nodestyle ?

2011-11-14 Thread Kent Tenney
I'm going to implement this as a button/plugin, the the feature list I want keeps growing, so ... Nevermind. Thanks, Kent On Sun, Nov 13, 2011 at 12:09 PM, Kent Tenney kten...@gmail.com wrote: I think I've asked this many times, I'll really try to remember this time. I find myself more and

Re: Caution: rev 4796 removes all cruft from the high-level interface

2011-11-14 Thread Edward K. Ream
On Mon, Nov 14, 2011 at 11:57 AM, Edward K. Ream edream...@gmail.com wrote: The widget ivar must always be identical to body.bodyCtrl or the log.logCtrl ivars It's easy to enforce this constraint. Just set:: bodyCtrl = widget in the body class. There is only one ivar, with two names.

Re: Caution: rev 4796 removes all cruft from the high-level interface

2011-11-14 Thread Edward K. Ream
On Mon, Nov 14, 2011 at 3:18 PM, Edward K. Ream edream...@gmail.com wrote: It's easy to enforce this constraint.  Just set::    bodyCtrl = widget Actually, this doesn't work for ivars. Not too big a deal. EKR -- You received this message because you are subscribed to the Google Groups

Re: Caution: rev 4796 removes all cruft from the high-level interface

2011-11-14 Thread Edward K. Ream
On Mon, Nov 14, 2011 at 11:57 AM, Edward K. Ream edream...@gmail.com wrote: The only remain tasks: the final cleanup and a new unit test that enforces the relationships between component classes. Rev 4800 contains the final cleanup. I am happy with the result: it is simpler, more robust and

How do I create a Qt window from a leo script?

2011-11-14 Thread Brian Theado
I want to learn about PyQt and leo's qtGui. As a first step, I'm trying to execute a script from within a leo body: from PyQt4 import QtGui w = QtGui.QWidget() w.resize(250, 150) w.move(300, 300) w.setWindowTitle('Simple test') w.show() When I try the above, I see a window appear and then

Re: How do I create a Qt window from a leo script?

2011-11-14 Thread Terry Brown
On Mon, 14 Nov 2011 18:20:31 -0500 Brian Theado brian.the...@gmail.com wrote: from PyQt4 import QtGui w = QtGui.QWidget() w.resize(250, 150) w.move(300, 300) w.setWindowTitle('Simple test') w.show() When I try the above, I see a window appear and then immediately disappear. Is there

Re: active_path: launching external applications

2011-11-14 Thread Terry Brown
On Sun, 13 Nov 2011 21:53:03 -0800 (PST) wgw wgwin...@gmail.com wrote: I installed the active_path plugin and everything seems to work fine. The only quirk I need to fix is controlling what a double click does. With text or html nodes, it imports the content and puts @auto in the headline.