Re: NEW: CSV editor

2018-02-08 Thread lewis
Yes it's fixed. LEPs fully close now.

Thanks
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: NEW: CSV editor

2018-02-08 Thread Terry Brown
On Thu, 8 Feb 2018 05:49:31 -0800 (PST)
lewis  wrote:

> 'edit-pane-csv' command and you now have 6 identical LEPs.

Thanks for that.  I think it's fixed now.  Turns widget.close() is just
widget.hide() unless you've done

self.setAttribute(QtConst.WA_DeleteOnClose)

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: NEW: CSV editor

2018-02-08 Thread lewis
Hi Terry,

I'm really looking forward to using the CSV editor functions, and getting 
to grips with the editor.

You are probably aware of these but here are some observations. For 
reference LEP = Leo Editor Pane.
scenario A:
>From a leo node, If I give the ''edit-pane-test-open'' command
An LEP pane (detached) opens in CSV Editor mode. The LEP title is 'LEP 
unnamed window' As the code develops, will this name be the node name?
The pane has an X at the top right; If I click X, the data closes and all I 
see is the Action button. Repeat the 'edit-pane-test-open' command and a 
completely new LEP opens.
The 1st LEP persists, but is not used again. Not all X closures leave the 
'Action' button visible; sometimes the LEP is left completely blank.
Each time you close and repeat the 'edit-pane-test-open' command it creates 
n+1 LEPs. If you leave them open, and edit one, all the LEPs update 
simutaneously.
So you can have 1 full screen view, and 1 full screen edit :)

scenario B:
>From a leo node, If I give the 'edit-pane-csv' command
A LEP pane opens in CSV Editor mode. There is an X at the top right; If I 
click X, the entire pane closes and Leo returns to it's default panes. 
However if I repeat the 'edit-pane-csv' command you see that 2 LEP panes 
open showing the same node data. Each time you close and repeat the 
'edit-pane-csv' command it creates n+1 LEPs. Close 5 LEPs, repeat the 
'edit-pane-csv' command and you now have 6 identical LEPs.

Regards
Lewis

scenario B:
>From a leo node, If I give the 'edit-pane-csv' command
A LEP pane opens in CSV Editor mode. There is an X at the top right; If I 
click X, the entire pane closes and Leo returns to it's default panes. 
However if I repeat the 'edit-pane-csv' command you see that 2 LEP panes 
open showing the same node data. Each time you close and repeat the 
'edit-pane-csv' command it creates n+1 LEPs. Close 5 LEPs, repeat the 
'edit-pane-csv' command and you now have 6 identical LEPs.

Regards
Lewis

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: NEW: CSV editor

2018-02-07 Thread Terry Brown
On Wed, 7 Feb 2018 07:36:05 -0800 (PST)
Arjan  wrote:

> This is great!
> 
> What would be an awesome way to use this would be if the CSV editor
> widget could be automatically activated in the edit pane for nodes
> with a table, so one can quickly switch between text and table/csv
> nodes. Maybe just for "@csv" nodes or so. Would something like that
> be possible?

Yes, but for now I've just added an `edit-pane-csv` command that opens
the CSV editor without all the drama described in the video / previous
post.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: NEW: CSV editor

2018-02-07 Thread Arjan
This is great!

What would be an awesome way to use this would be if the CSV editor widget 
could be automatically activated in the edit pane for nodes with a table, 
so one can quickly switch between text and table/csv nodes. Maybe just for 
"@csv" nodes or so. Would something like that be possible?

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: NEW: CSV editor

2018-02-07 Thread Edward K. Ream
On Tue, Feb 6, 2018 at 3:10 PM, Terry Brown  wrote:

I've written a CSV table editor, implemented as part of the Leo Edit
> Pane system.
>

​Many thanks for this, Terry.  The demo explains much better than words

Would you be willing to adapt these ideas for #433: Complete the tables.py
plugin ?
​
If not, I'll use your code as a model.

​
Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: NEW: CSV editor

2018-02-07 Thread Matt Wilkie


> I've written a CSV table editor, implemented as part of the Leo Edit 
> Pane system.  To access it, enter the Alt-X command 
>

ooh yes please! Thanks Terry

(watches video)

That's awesome! I can *so *use that. It was also nice to see a different 
layout in action. I haven't played much with the panel settings.

matt

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.


Re: NEW: CSV editor

2018-02-06 Thread Terry Brown
On Tue, 6 Feb 2018 15:10:59 -0600
Terry Brown  wrote:

> Occurs to me I haven't tested Python 2, so might not work there, but
> seems solid in Python 3.

Yep, doesn't run in Python 2 just now, will fix that later.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.