Re: Update re: new model

2018-08-04 Thread Edward K. Ream
On Sat, Aug 4, 2018 at 2:39 PM, vitalije wrote: > >> Instead initialization code should be kept free and clean of any gui >> calls. Either writeFromString must not call gui methods like endEditing, >> either reload_settings, init_env in abbrevCommands must not call >> writeFromString. >> >> def

Re: Update re: new model

2018-08-04 Thread Edward K. Ream
On Sat, Aug 4, 2018 at 2:29 PM, vitalije wrote: > Revision 5c8fa20 > > contains fix. > Works for me. However, the tree widget has a light background, even when using a dark theme. > > This is a perfect

Re: Update re: new model

2018-08-04 Thread vitalije
> > > Instead initialization code should be kept free and clean of any gui > calls. Either writeFromString must not call gui methods like endEditing, > either reload_settings, init_env in abbrevCommands must not call > writeFromString. > > def writeFromString(self, root, s,

Re: Update re: new model

2018-08-04 Thread vitalije
Revision 5c8fa20 contains fix. This is a perfect example of the initialization mess. From the traceback it is clearly that this exception was raised during load of settings. It is not possible that

Re: Update re: new model

2018-08-04 Thread Edward K. Ream
On Sat, Aug 4, 2018 at 11:56 AM, Edward K. Ream wrote: > Thanks. On a bike ride with Rebecca. Will try later > Copied leo/core/leoDataModel.py. Now I get: >python c:\leo.repo\leo-editor\launchLeo.py --gui=qttabs --gui=qttabs leo\core\leoPy.leo leo\plugins\leoPlugins.leo

Writing using Leo with new tree and model

2018-08-04 Thread vitalije
To test the new Leo tree in production, I have written small plugin. Actually I have just converted some scripts I've been using for writing my blog into a plugin. Recently there has been some discussion in the github issue No: 946 . I

Re: Update re: new model

2018-08-04 Thread Edward K. Ream
Thanks. On a bike ride with Rebecca. Will try later On Sat, Aug 4, 2018 at 11:48 AM Terry Brown wrote: > On Sat, 4 Aug 2018 10:39:03 -0500 > "Edward K. Ream" wrote: > > > ModuleNotFoundError: No module named 'leo.core.leoDataModel' > > > > What should I do? > > Is it this, from an earlier

Re: Update re: new model

2018-08-04 Thread vitalije
Yes it is. Thanks I forgot to put the link. Vitalije On Saturday, August 4, 2018 at 6:48:34 PM UTC+2, Terry Brown wrote: > > On Sat, 4 Aug 2018 10:39:03 -0500 > "Edward K. Ream" > wrote: > > > ModuleNotFoundError: No module named 'leo.core.leoDataModel' > > > > What should I do? > > Is it

Re: Update re: new model

2018-08-04 Thread Terry Brown
On Sat, 4 Aug 2018 10:39:03 -0500 "Edward K. Ream" wrote: > ModuleNotFoundError: No module named 'leo.core.leoDataModel' > > What should I do? Is it this, from an earlier post? "Note, anyone who wants to try this branch, the code needs the latest version of leoDataModel.py file in leo/core/

Re: Update re: new model

2018-08-04 Thread vitalije
File leoDataModel.py is not added to Leo yet, because it is in another repository. You should obtain the latest version of this file and put it in the leo/core/ folder. Having same file in two different repositories would make confusion and unnecessary merge conflicts, so, I prefer not to add

Re: Update re: new model

2018-08-04 Thread vitalije
> Must say I'm surprised by the "draw the tree yourself" approach, but > will see how it pans out. > > I was also considering the other possibility: using QGraphicsScene and QGraphicsItem. That approach would be most similar to the miniTkLeo where tree is drawn in Tk.Canvas by adjusting

Re: Update re: new model

2018-08-04 Thread vitalije
Rev 35cabb5 fixes top row being different background color. In fact it was not different background color but headline edit widget appeared automatically on double click (even if double click was not in