Re: A more philosophical question

2008-04-10 Thread zpcspm
Any tips for a Leo newbie on how to start a project from scratch? Here's a quote from the docs: @thin - Use this unless you have a good reason not to. It is the 'state-of-the-art' in derived files. I had a bad experience when trying to import derived files into leo as @file. After a couple of

Line length in nested nodes

2008-04-19 Thread zpcspm
When writing Python code in the body pane, I see the cursor position so I can watch the line length to not exceed a certain value. However, when a line gets written into a derived file, its length may increase (due to indentation) and pylint complains about long lines. This is a situation I'd

Leo screenshot in the tutorial

2008-04-19 Thread zpcspm
I can't see the mini-buffer in the tutorial: http://webpages.charter.net/edreamleo/intro.html#introduction Is this because that is a screenshot of an older Leo version? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Newbie with Questions on Organizing PHP File Scripts

2008-04-24 Thread zpcspm
I suppose this is a bug, since I'm getting the same traceback: --- exception executing command Traceback (most recent call last): File /home/shadow/leo/src/leoCommands.py, line 275, in doCommand val = command(event) File /home/shadow/leo/src/leoCommands.py, line 1508, in importAtFile

Commented nodes in @thin trees

2008-04-26 Thread zpcspm
When one writes code (to a plain text file), it is possible to comment parts of it, so the compiler/interpreter would ignore those parts. I have a @thin node that represents a Python source file. It contains a couple of classes. It is trivial to comment a part of it (let's say a class) in the

Re: Leo *is* nearing completion

2008-05-21 Thread zpcspm
On May 17, 5:11 pm, Edward K. Ream [EMAIL PROTECTED] wrote: - 2 weeks: integrate rope ( autocompleter) Here's one more interesting third-party tool that could be considered for integration when it gets mature enough: http://clonedigger.sourceforge.net/

log tab containing a Tk.Canvas widget doesn't display image

2008-05-26 Thread zpcspm
Code: log = c.frame.log tag = 'Board' w = log.canvasDict.get(tag) if not w: w = log.createCanvas(tag) import Tkinter as Tk cell = Tk.PhotoImage(file = '/tmp/img.gif') w.pack_forget() item = w.create_image(10, 10, image = cell) w.pack() log.selectTab(tag) This piece of code doesn't work. The

Re: Obsolete docs?

2008-06-04 Thread zpcspm
One more inconsistency that is confusing me: code from p.3, the same place: import leo.core.leoGlobals as g import leo.core.leoPlugins as leoPlugins code from LeoPlugins.leo (Plugins-- Templates: these show recommended ways of defining plugins.--Template for Tk plugin with per-commander

Re: Obsolete docs?

2008-06-05 Thread zpcspm
I am still having problems when trying to reproduce the plugin example from the docs. I have enabled the print_cp.py plugin in the @enabled-plugins node of leoSettings.py, I have copied the print_cp.py file into the plugins directory of leo. Leo tries to load the plugin, but fails:

Re: Obsolete docs?

2008-06-05 Thread zpcspm
Change g.makeScriptButton to g.app.gui.makeScriptButton. Are you running Leo from a console? You should do that if you are developing a plugin or other code: some messages only to to the console. The bug should cause a crash early, but I'm not sure it would result in the can not load

Re: Clipboard content encoding issue

2008-06-22 Thread zpcspm
As a first attempt of a fix, I added the line: s = g.toUnicode(s,encoding=g.app.tkEncoding) to the insert-text logic. I'm not sure this will help. I am having touble finding the proper place in the leo source. Alt-X insert-tTab does not auto-complete to insert-text and searching for

Re: Clipboard content encoding issue

2008-06-23 Thread zpcspm
Here is what I did: - I went to the node Code--Gui Base classes--@thin leoFrame.py--class leoFrame--Must be defined in base class--Cut/Copy/Paste (leoFrame)-- leoFrame.pasteText I'm noticing that in 4.4.8 final it is called LeoPyRef.leo (in src/ directory), not leoPy.leo If I went to the wrong

Re: Demo of serious pylint bug

2008-07-02 Thread zpcspm
1. I don't think you have to import baseClass in main.py, but I guess this is irrelevant for this context. 2. I can't reproduce this error when running pylint on subClass.py directly. $ pylint --version pylint 0.13.1, astng 0.17.1, common 0.22.0 Python 2.5.1 (r251:54863, Sep 27 2007, 16:22:40)

Re: Demo of serious pylint bug

2008-07-02 Thread zpcspm
Update: running pylint from another directory and specifying the path to subClass.py triggers the error. So it looks like pylint doesn't update (or doesn't do it correctly) sys.path to include directories containing checked files. --~--~-~--~~~---~--~~ You received

Re: no downloadable source distribution weekly? nightly?

2008-07-03 Thread zpcspm
You could add the last night, the night before, the night 5 days ago, and the night 10 days ago thingie to the page itself. The date in the filenames is relevant, but it takes a couple of seconds to figure out that the latest bzr snapshot is the first one.

Small typo in FAQ?

2008-07-03 Thread zpcspm
http://webpages.charter.net/edreamleo/FAQ.html#how-should-i-use-leo-with-bzr I'm not a native English speaker, but this sounds weird: These reference files should containing nothing but @thin nodes. Would it be correct to replace containing with contain?

How to return from a script that is executed when a script button is pressed?

2008-07-04 Thread zpcspm
Suppose I have a node that contains a script. I create a script button. During its execution there is an if check. If the condition that is getting passed to if is true, the script shall not execute further. Adding a return statement gives SyntaxError: 'return' outside function. I've also tried

Re: How to return from a script that is executed when a script button is pressed?

2008-07-04 Thread zpcspm
I recommend the following pattern for all complex scripts: class scriptClass: @others # define the methods in child nodes. scriptClass().run() # create a scriptClass object and call its run method. Not only can you return from the run method (or any other method), you avoid global

Re: Line length in nested nodes

2008-07-06 Thread zpcspm
Let us define p.fileLevel() for any position p as follows: p.fileLevel() is 0 if p is not a descendant of any kind of @file node. Otherwise, suppose root is the position of the enclosing @file node (or @thin node, etc.) p.fileLevel() is p.level() - root.level() ... I am still returning

Small typo in leo todo

2008-07-08 Thread zpcspm
The headline of To do--@thin ../doc/leoToDo.txt--Other/Minor--Improve api docs with epidoc? shall be Improve api docs with epydoc? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this

Missing script-button

2008-07-08 Thread zpcspm
It is present here: http://www.greygreen.org/leo/leo-bzr-snapshot-200807070253.zip but is missing here: http://www.greygreen.org/leo/leo-bzr-snapshot-200807080253.zip when leo starts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Missing script-button

2008-07-08 Thread zpcspm
I have _finally_ installed bzr, so now I can speak in terms of revisions. I don't see the button in revisions 654 and 653, it shows up in r652, so I can just confirm what Terry said above. Slackware Linux 12.0, Python 2.5.1 --~--~-~--~~~---~--~~ You received this

Re: Hi and help

2008-07-09 Thread zpcspm
I can't find the way to install it It is possible to run leo on Windows by just typing python.exe lauchLeo.py. If Windows doesn't know about python.exe, you could modify the PATH env variable or use a full path to the python interpreter in the above command. I'm on a windows 2000 Pro pc.

No horizontal scrolling in body panel

2008-07-13 Thread zpcspm
Typing/pasting a long string that contains no newlines in the body panel, reveals the fact that the body panel does not have horizontal scrolling. Is this a feature, a bug, or the effect of a setting option (grepping leoSettings.leo for scroll didn't find anything relevant)? I've discovered this

Re: No horizontal scrolling in body panel

2008-07-13 Thread zpcspm
Modifying this options does the job. Thank you. --~--~-~--~~~---~--~~ 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

Re: Small typo in leo source

2008-07-14 Thread zpcspm
One more: Code--Core classes...--@thin leoNodes.py--class position--P.File Conversion should be Code--Core classes...--@thin leoNodes.py--class position--p.File Conversion --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Small typo in leo source

2008-07-14 Thread zpcspm
Somebody with admin rights please modify the name of this thread to avoid creation of multiple topics. This is the right place to report small typos and inconsistencies in leo source and docs. http://webpages.charter.net/edreamleo/scripting.html#p-parents-iter-p-self-and-parents-iter This doc

Re: Line length in nested nodes

2008-07-15 Thread zpcspm
I think I'm getting some progress with this. Unfortunately my current bzr knowledge is restricted to retrieving a certain leo branch from launchpad, so creating a launchpad account and registering my own branch is out of question for the near future. Would you guys mind if I post a small patch

Missing newline in multiline strings inside @test nodes causes test failures.

2008-08-19 Thread zpcspm
Consider this simple example: --- cut here --- ?xml version=1.0 encoding=utf-8? ?xml-stylesheet ekr_test? leo_file leo_header file_format=2 tnodes=0 max_tnode_index=0 clone_windows=0/ globals body_outline_ratio=0.5 global_window_position top=50 left=50 height=500 width=700/

Re: Missing newline in multiline strings inside @test nodes causes test failures.

2008-08-19 Thread zpcspm
I've got one more test where a section reference is involved. This is the body of the @test node: --- cut here --- root = p.copy() while p.hasChildren(): p.firstChild().doDelete(newNode = None) try: p1 = p.insertAsLastChild() g.pr(p1.headString()) head = 'head'

leo is overwriting ~/myLeoSettings.leo when it is a symlink, not a regular file

2008-08-20 Thread zpcspm
I use to keep config files for misc apps in a VCS. myLeoSettings.leo landed there as well. In HOME, I have a symlink to the original myLeoSettings.leo. leo sees the contents well, but if I open ~/ myLeoSettings.leo (the symlink, not the original file) and save it, then leo overwrites the symlink

Re: Missing newline in multiline strings inside @test nodes causes test failures.

2008-08-20 Thread zpcspm
On Aug 20, 4:51 pm, Edward K. Ream [EMAIL PROTECTED] wrote: On Wed, Aug 20, 2008 at 12:36 AM, zpcspm [EMAIL PROTECTED] wrote: I've got one more test where a section reference is involved. This is the body of the @test node: ... head = ' xxx ' ... Try this: head

Re: A couple of tracebacks when running leo's own tests

2008-08-23 Thread zpcspm
One more traceback for r890. $ bzr pull ... All changes applied successfully. Now on revision 890. Running tests: @enabled-plugins found in unitTest.leo This is a fixed window @suite run all doctests (windows only) script did not set g.app.scriptDict @suite test syntax of all plugins script

Tabs instead of spaces in exported clean files

2008-08-23 Thread zpcspm
I have a script button that writes clean files (without sentinels). You can see the code here: http://pastebin.com/f5b797cec If I have a @thin derived file that contains Python source code and starts with: --- cut here --- @first #!/usr/bin/env python @language python @tabwidth 4 --- cut here

Re: Tabs instead of spaces in exported clean files

2008-08-23 Thread zpcspm
On Aug 23, 10:59 pm, Edward K. Ream [EMAIL PROTECTED] wrote: @tabwidth -4 specifies 4 spaces, @tabwidth 4 specifies tabs whose effective width is 4 spaces. Your script uses at.write, which follows this convention. So it seem like you are getting the expected results. If you don't like

Re: Tabs instead of spaces in exported clean files

2008-08-24 Thread zpcspm
Update: I have retyped the whole .py @thin file from scratch and the problem vanished. Presumably it was something wrong with the @thin file, not with the at.write() algorithm. It's still interesting, because I didn't see any wrong indented code in the old version that was causing problems. But

Re: A couple of tracebacks when running leo's own tests

2008-08-24 Thread zpcspm
On Aug 24, 10:14 pm, Edward K. Ream [EMAIL PROTECTED] wrote: On Sat, Aug 23, 2008 at 4:28 AM, zpcspm [EMAIL PROTECTED] wrote: One more traceback for r890. These are not serious The reason why I'm reporting these tracebacks is because I'm almost ready to commit into the trunk the feature

Re: A couple of tracebacks when running leo's own tests

2008-08-25 Thread zpcspm
On Aug 25, 1:28 pm, Edward K. Ream [EMAIL PROTECTED] wrote: First of all, what platform and version of Python are you using? Slackware Linux 12.0 Python 2.5.1, Tk 8.4.16, Pmw 1.3 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: A couple of tracebacks when running leo's own tests

2008-08-25 Thread zpcspm
On Aug 25, 3:41 pm, Edward K. Ream [EMAIL PROTECTED] wrote: On Mon, Aug 25, 2008 at 6:13 AM, zpcspm [EMAIL PROTECTED] wrote: Ok. Please download a clean copy of the trunk and run all unit tests there. Call the set of failed unit tests in the trunk set A. Don't worry about set A. Your job

Re: Line length in nested nodes

2008-08-25 Thread zpcspm
I've just pushed the feature into the trunk. Please tell me if I did something wrong (like overwriting something for example). I had to do two merges because the trunk was modified right before I was going to commit into it. --~--~-~--~~~---~--~~ You received this

Re: Line length in nested nodes

2008-08-25 Thread zpcspm
On Aug 25, 6:39 pm, Edward K. Ream [EMAIL PROTECTED] wrote: On Mon, Aug 25, 2008 at 10:14 AM, zpcspm [EMAIL PROTECTED] wrote: I've just pushed the feature into the trunk. Please tell me if I did something wrong (like overwriting something for example). I had to do two merges because

Re: Line length in nested nodes

2008-08-25 Thread zpcspm
I have added the line otl : vimoutline, #zpcspm 8/25/08 Vim's outline plugin to self.extra_extension_dict in Code-- Core classes-- @thin leoApp.py-- app.__init__-- define global data structures app This didn't fix the failing test. I'm not even sure I did the right thing. I'm confused

Re: Commit to trunk lost again.

2008-08-25 Thread zpcspm
: 903 committer: Edward K. Ream [EMAIL PROTECTED] branch nick: trunk timestamp: Mon 2008-08-25 11:14:15 -0500 message: commit after merge revno: 899.1.3 committer: zpcspm [EMAIL PROTECTED] branch nick: leo-fcol

Re: Line length in nested nodes

2008-08-25 Thread zpcspm
On Aug 25, 8:13 pm, TL [EMAIL PROTECTED] wrote: An updated leoApp.py file with the ahk entry removed has been committed to the trunk. TL @test languageForExtension is still failing to me I've run just this test, not the all tests from leoTest.py $ bzr log -r -1..

Re: A couple of tracebacks when running leo's own tests

2008-08-26 Thread zpcspm
I have modified @test batch mode to make it pass. leo is now started via launchLeo.py instead of leo/core/runLeo.py The change is on the trunk (r907). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group.

Re: Line length in nested nodes

2008-08-26 Thread zpcspm
revno: 907 committer: Edward K. Ream [EMAIL PROTECTED] branch nick: trunk timestamp: Tue 2008-08-26 07:47:25 -0500 message: commit after merge revno: 905.1.2 committer: zpcspm [EMAIL PROTECTED] branch nick

Re: Installation of Leo on Linux

2008-08-26 Thread zpcspm
On Aug 26, 8:01 pm, thyrsus [EMAIL PROTECTED] wrote: Traceback (most recent call last): File /usr/local/lib/leo/leo/core/runLeo.py, line 560, in module run() File /usr/local/lib/leo/leo/core/runLeo.py, line 64, in run import leo.core.leoGlobals as leoGlobals ImportError: No

Re: stray ^M in launchLeo.py

2008-08-28 Thread zpcspm
On Aug 28, 7:09 pm, Dan White [EMAIL PROTECTED] wrote: There are three stray ^M characters in the launchLeo.py script, the first of which (on Linux) causes bash to call python^M resulting in complete and utter destruction (well, not quite ;). Making the script executable is no big deal, but

Python multiline string indentation

2008-08-29 Thread zpcspm
I've been thinking about something and I fail to see an answer. Consider the following code: --- cut here --- class Example: def __init__(self): self.s = ''' foo bar''' def print_s(self): print self.s Example().print_s() --- cut here --- The goal is to create an

Re: Python multiline string indentation

2008-08-29 Thread zpcspm
On Aug 29, 3:55 pm, Edward K. Ream [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 1:02 AM, zpcspm [EMAIL PROTECTED] wrote: I've been thinking about something and I fail to see an answer. Consider the following code: --- cut here --- class Example: def __init__(self

Re: Python multiline string indentation

2008-08-29 Thread zpcspm
On Aug 29, 5:23 pm, Edward K. Ream [EMAIL PROTECTED] wrote: On Fri, Aug 29, 2008 at 8:21 AM, zpcspm [EMAIL PROTECTED] wrote: I was importing (manually) a small flat python script into a leo @thin node and I've noticed that the output of the script changed after that (due to the indentation

Re: stray ^M in launchLeo.py

2008-08-29 Thread zpcspm
On Aug 29, 6:15 pm, Edward K. Ream [EMAIL PROTECTED] wrote: Oops. I forgot. Leo already supports the @lineending directive. See http://webpages.charter.net/edreamleo/directives.html#lineending Since the documentation states that leo uses unix-style newlines by default when writing derived

sorted() built-in Python function not highlighted in body pane

2008-09-01 Thread zpcspm
Since leo requires at least Python 2.4 and sorted() appeared in Python 2.4, I suppose it would be good if sorted() will be added to the list of Python built-ins. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Question about Recent Files menu

2008-09-04 Thread zpcspm
I find it a bit hard to select something from Recent Files. I think this is because the menu looks bloated due to dirnames. Is it possible to emphasize the second item (just the file name of the outline) by displaying it in bold for example? --~--~-~--~~~---~--~~

Re: Leo 4.5 final doesn't load ~/myLeoSettings.leo ...

2008-09-04 Thread zpcspm
On Sep 4, 3:56 pm, martin [EMAIL PROTECTED] wrote: at startup unless I'm in ~. Has this feature been removed? Apologies if I missed the announcement. martin smith leo configs were migrated to ~/.leo directory try restarting leo after copying the config file there

Re: Question about Recent Files menu

2008-09-04 Thread zpcspm
On Sep 4, 5:57 pm, Terry Brown [EMAIL PROTECTED] wrote: ... in those cases where the basename is not unique, have the menu entry pop up a sub-menu of the different paths on which that basename occurs One more menu level would still add complexity. Another option is to include the basenames

Re: Question about Recent Files menu

2008-09-04 Thread zpcspm
On Sep 4, 10:37 pm, Terry Brown [EMAIL PROTECTED] wrote: Anyway, I implemented both ways, and I think the submenu approach looks much cleaner, but you can enable either one with @settings. @bool recent_files_group use submenus when multiple paths exist @bool recent_files_group_always

Outline-specific configuration for plugins

2008-09-12 Thread zpcspm
As I'm inspecting the plugins directory, I see that using *.ini files is a typical way of providing some kind of configuration to plugins. Is this standartized and documented somewhere? Also, what about outline-specific configuration options for plugins? Assume that there is a plugin that dumps

Re: Outline-specific configuration for plugins

2008-09-12 Thread zpcspm
On Sep 12, 4:31 pm, Edward K. Ream [EMAIL PROTECTED] wrote: Please take a look at the settings in leoSettings.leo, the node: @settings--Plugins As you can see, the convention is to prefix the name of the setting with the name of the plugin. Which implies that an outline should contain a

Re: Outline-specific configuration for plugins

2008-09-12 Thread zpcspm
On Sep 12, 5:08 pm, Edward K. Ream [EMAIL PROTECTED] wrote: On Fri, Sep 12, 2008 at 8:47 AM, zpcspm [EMAIL PROTECTED] wrote: Which implies that an outline should contain a @settings node with outline-specific settings? Sure. Outlines contain @enabled-plugins nodes, so there should

Outline-specific settings

2008-09-13 Thread zpcspm
Assume that an outline has a @settings node. When the outline is loaded, these settings are processed. I can choose any name for a setting, but I wonder what would happen if I choose an already existing name. Can leo provide some hints in such cases, so overwriting already existing settings won't

Re: User input during execution of scripts

2008-09-20 Thread zpcspm
Now I have a couple of questions about the usage of getArg(). The first argument, event, looks like something typical for widget methods in context of binding them to user-generated events. I have a grain of experience with wxPython and widget functions that match the On*() pattern usually have

Re: User input during execution of scripts

2008-09-20 Thread zpcspm
On Sep 20, 6:22 pm, Edward K. Ream [EMAIL PROTECTED] wrote: The trick is that you must define a function that can be used as a callback. Aha! I recall having a similar issue with returning from scripts. And you suggested as well to wrap script code into functions/class methods for being able to

Re: Looking for a method like p.convertTreeToString(), but more like @nosent

2008-09-27 Thread zpcspm
What exactly are you trying to accomplish? If your task is to get the contents of a derived file with sentinels removed into a string, you could use c.atFileCommands.write() There is an example script in leo/scripts/scripts.leo. See the node Scripts--@file leoScripts.txt--Important--Write

Re: Problem: full icon area

2008-09-30 Thread zpcspm
On Sep 30, 2:41 pm, Ville M. Vainio [EMAIL PROTECTED] wrote: On Tue, Sep 30, 2008 at 2:23 PM, zpcspm [EMAIL PROTECTED] wrote: I have an outline that has six script buttons. I need to add a couple more, but the icon area is already full so the next added button is not visible. What can I do

Problem: full icon area

2008-09-30 Thread zpcspm
I have an outline that has six script buttons. I need to add a couple more, but the icon area is already full so the next added button is not visible. What can I do to make all buttons visible? Shortening button labels won't do it, because the names are already laconic enough. Also I wouldn't

Re: User input during execution of scripts

2008-09-30 Thread zpcspm
On Sep 20, 6:22 pm, Edward K. Ream [EMAIL PROTECTED] wrote: Please follow the example carefully. Here is a tested script: @@@ def getInput (event=None): stateName = 'get-input' k = c.k ; state = k.getState(stateName) if state == 0: k.setLabelBlue('Input:

Re: Line length in nested nodes

2008-09-30 Thread zpcspm
nick: trunk timestamp: Mon 2008-08-25 11:14:15 -0500 message: commit after merge revno: 899.1.3 committer: zpcspm [EMAIL PROTECTED] branch nick: leo-fcol timestamp: Mon 2008-08-25 17:53:37 +0300 message

Re: Problem: full icon area

2008-09-30 Thread zpcspm
I've done some testing and I can suggest some little improvements if tk allows it. I've created a @button node then I've clicked the script-button multiple times till I've got a couple of lines filled with script buttons. As you know, right-clicking on a script button deletes it. It would make

Re: User input during execution of scripts

2008-10-01 Thread zpcspm
On Sep 20, 6:22 pm, Edward K. Ream [EMAIL PROTECTED] wrote: On Sat, Sep 20, 2008 at 6:50 AM, zpcspm [EMAIL PROTECTED] wrote: Please follow the example carefully. Here is a tested script: @@@ def getInput (event=None): stateName = 'get-input' k = c.k ; state = k.getState(stateName

Re: Startup speed improvement

2008-10-07 Thread zpcspm
On Oct 6, 11:06 pm, Ville M. Vainio [EMAIL PROTECTED] wrote: - Implement a helper app in C that would take a bunch of file names and dump parsed data to stdout. The binary could be shipped with leo. This would be much simpler from deployment perspective than python extension / pyrex /

Choosing leo GUI at startup

2008-10-16 Thread zpcspm
I'm following the evolution of the Qt GUI plugin, even if I didn't manage to scramble some spare time to install all the stuff it requires and see how it looks. But this shall happen for sure someday. Since this is a plugin, enabling it would requre the user to fiddle with @enabled-plugins in

Re: Choosing leo GUI at startup

2008-10-16 Thread zpcspm
On Oct 16, 3:36 pm, Edward K. Ream [EMAIL PROTECTED] wrote: I have been thinking that plugins that require a particular gui should reside in leo\plugins\tkinter or leo\plugins\qt, etc and that gui plugins should be treated differently because they should be loaded first. I expect that some

Re: Leo Launch error

2008-10-18 Thread zpcspm
On Oct 17, 8:49 pm, pr4vst3r [EMAIL PROTECTED] wrote: ... I'm using it in a Slackware 12.0 environment. It was working fine before a slapt update. Any pointers? slapt is not officially supported by Slackware, so you won't get any support with it. If you're using slapt, you're doing it at

Re: Howto enable qt?

2008-10-20 Thread zpcspm
I'm joining the club of testers :-) OS: Slackware Linux 12.0 Python 2.5.1 Slackware Linux doesn't have Qt4 yet, so I've built and installed it manually. I've built a package for Qt4-4.4.3 using the SlackBuild from slackbuilds.org and I've installed it. I believe it went well, because after

Re: Howto enable qt?

2008-10-20 Thread zpcspm
On Oct 21, 1:24 am, Ville M. Vainio [EMAIL PROTECTED] wrote: On Tue, Oct 21, 2008 at 12:21 AM, zpcspm [EMAIL PROTECTED] wrote: I have provided such a detailed report to anticipate questions about a broken qt4/pyqt4 install. However, if anybody spots something fishy I would have expected

qt bug: wrong input during auto-completion

2008-10-23 Thread zpcspm
To reproduce: run leo with --gui=qt press Alt-X to get a command prompt in the mini-buffer press '-' I get minus in the mini-buffer instead of '-' --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group.

qt bug: ignored newlines in log pane

2008-10-23 Thread zpcspm
It looks like newlines in multiline strings that get displayed to the log pane, are not treated properly. To illustrate, run the command apropos-bindings. The text looks good in the console, but not in the log pane. --~--~-~--~~~---~--~~ You received this message

Re: The present roadblocks

2008-10-24 Thread zpcspm
On Oct 24, 11:37 pm, Edward K. Ream [EMAIL PROTECTED] wrote: rev 1372 adds another exotic special case to handle the key conventions in Leo's core. With this latest fix all keys appear to work properly! Just checked r1374 of qt-plugin I hit Alt-X and type something. Hitting Esc after that

Re: pane organization

2008-11-02 Thread zpcspm
On Nov 1, 10:52 pm, rhh [EMAIL PROTECTED] wrote: Also, is there a way to display line (and column) numbers in the leo editor? Which GUI are you using? The tk GUI displays line and column numbers. r1439 of the Qt branch also seems to have this stuff already implemented.

Re: Scripts broken in multiuser environment (with fix)

2008-11-05 Thread zpcspm
Perhaps another option would be to prefix these script files with the current user name and store them in /tmp, that is world writable. But I guess the option of storing this temp file in ~/.leo directory has the advantage of not spreading user-specific leo-related files across multiple

Re: Fatal Python error: GC object already tracked

2008-11-14 Thread zpcspm
On Nov 14, 6:52 am, ne1uno [EMAIL PROTECTED] wrote: py2.5 on win98 Ouch, that's hardcore. Why would you use such an ancient and unstable OS? Win98 is notorious for being unstable itself, because it doesn't use the NT kernel. And Fat32 is not a reliable filesystem as well.

qt GUI: random resize of main frame

2008-11-14 Thread zpcspm
I'm noticing a strange behaviour. When I contract a node in the outline pane, the main app frame changes its size. Strange facts: - it happens randomly, not always - it doesn't happen when I expand nodes, only when I contract them I'm running leo-qt with empty HOME env variable. This means that

Re: qt GUI bug: lost change when saving an outline

2008-11-14 Thread zpcspm
I've just spotted one more situation when data loss is happening. To reproduce: - open any outline - hit Ctrl-I to add a node - select the headline so you can edit it - change the headline, then press Ctrl-I to add a new node Important: press Ctrl-I when the headline is still selected and can

Re: qt GUI bug: lost change when saving an outline

2008-11-15 Thread zpcspm
On Nov 15, 10:55 pm, Edward K. Ream [EMAIL PROTECTED] wrote: The bug happens only when you actually click on a headline to select it: typing control-h to select the headline works as expected. This should be enough to track down the problem... Many thanks for this comment. I indeed use the

Re: qt GUI bug: lost change when saving an outline

2008-11-17 Thread zpcspm
I'm unable to run all the tests ATM, but I can't repeat the bug anymore with r1490 of qt-plugin branch. So the bug seems to be fixed in Linux as well. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group.

Re: Totally cool: Qt settings

2008-11-17 Thread zpcspm
On Nov 17, 7:46 pm, Edward K. Ream [EMAIL PROTECTED] wrote: I just discovered the System:Preferences: Qt 4 Settings panel in Ubuntu. This can be a wrapper for qtconfig. Try typing qtconfig (eventually hit tab completion after that, because I have qtconfig and qtconfig-qt4 executables for qt3

Re: Trying QT gui

2008-11-23 Thread zpcspm
On Nov 24, 5:00 am, tfer [EMAIL PROTECTED] wrote: I just opened a few Leo files and navigated around in them, One thing I noticed that arrowing around in the tree always sent the maximized window back to the size it started out as. This is very similar to what I've reported here:

Re: Trying QT gui

2008-11-24 Thread zpcspm
On Nov 24, 6:21 pm, Edward K. Ream [EMAIL PROTECTED] wrote: This is very similar to what I've reported here: http://groups.google.com/group/leo-editor/browse_thread/thread/53f977... This simply can not be a Leo problem. Iirc, the original problem arose on variant of Linux that I assume is

Conditional creation of buttons from @button nodes

2008-12-10 Thread zpcspm
I would like to know if is it possible to control creation of buttons from @button nodes when an outline is opened. I use to think that when an outline is opened, it is scanned for @button nodes and mod_scripting creates a script button for each of them. Please correct me if this is wrong. I

Re: Leo's HOME directory

2008-12-11 Thread zpcspm
The cool thing about leo is that you can get a fresh copy from launchpad using bzr branch, then you cd to that directory and run leo by python launchLeo.py or python launchLeo.py --gui=qt. You'll get a .leo directory in your user HOME directory, with user- specific settings, no matter where you

Re: Qt gui

2008-12-18 Thread zpcspm
On Dec 18, 8:42 pm, Ben zzzfn...@yahoo.com wrote: I am still using 4.8.8 I'm not sure what is this supposed to mean. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send

Re: Qt gui

2008-12-20 Thread zpcspm
On Dec 20, 8:09 pm, Ben zzzfn...@yahoo.com wrote: 4.8.8. is the version of Leo that I am using.  I haven't been able to get version 5 to install in my computer, even though I have the latest Python. I'm running the latest bzr and leo says: Leo 4.5.1 final, build 1.244 where do you get

Re: qt GUI plugin broken?

2008-12-21 Thread zpcspm
On Dec 21, 7:43 pm, Terry Brown terry_n_br...@yahoo.com wrote: You might need to install something to get qt-scintilla I don't have qt bindings for scintilla on this system. Will install them now and see if this was the problem. --~--~-~--~~~---~--~~ You received

Re: qt GUI plugin broken?

2008-12-21 Thread zpcspm
On Dec 21, 7:46 pm, zpcspm zpc...@gmail.com wrote: On Dec 21, 7:43 pm, Terry Brown terry_n_br...@yahoo.com wrote: You might need to install something to get qt-scintilla I don't have qt bindings for scintilla on this system. Will install them now and see if this was the problem. Indeed

Re: qt GUI plugin broken?

2008-12-21 Thread zpcspm
On Dec 21, 9:50 pm, Terry Brown terry_n_br...@yahoo.com wrote: Done on the trunk, I think... didn't actually un-install qt to see if it works :-) I uninstalled qscintilla-python for testing and I've got the error message. It is more informative now. Btw, there is a typo in the error message:

Thoughts about navigating the leo outline programmatically

2009-01-01 Thread zpcspm
Preface Some time ago I was fiddling with a Greasemonkey script that wasn't written by me. My goal was to provide some refactoring hints to the authors. Obviously, my first task was to understand what it does and how. I can read JavaScript code because of some C/Java background, but not more

Re: Thoughts about navigating the leo outline programmatically

2009-01-01 Thread zpcspm
I think it's time to add a take a closer look at IPython item to my TODO list :) My first post was a perspective of somebody who uses leo, but doesn't use IPython at all: nor IPython itself, neither a combo of leo and IPython. It happened because leo doesn't enforce using IPython.

Re: Thoughts about navigating the leo outline programmatically

2009-01-02 Thread zpcspm
On Jan 2, 3:09 pm, Edward K. Ream edream...@gmail.com wrote: We all agree that the iLeo workbook is a good thing to do. However, the payoff of the workbook is for users using IPython with Leo; the payoff for script writers is small. I've just installed IPython. The installation was painless

Re: environment variables in path of a derived file

2009-01-06 Thread zpcspm
On Jan 5, 5:02 pm, Edward K. Ream edream...@gmail.com wrote: Did you try @nosent ~/here/the/file/should/go.txt ? ~ gets expanded to $HOME correctly for me on Linux, but I never use it. I usually have a *.leo file and a current directory that contains this file (I consider it to be root). All

  1   2   3   4   5   >