Re: Leo *is* nearing completion
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/ --~--~-~--~~~---~--~~ 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: Cleo icons won't work on linux
It seems nobody care about the problem of can not load *.png. Need us fix the bug by ourselves or just use leo without icon? On 5月21日, 下午1时25分, hairui [EMAIL PROTECTED] wrote: Under python 2.5, using import ImageTk can not find the ImageTk, try from PIL import ImageTk instead. A previous post has mentioned similar problem, it seems a new image.py file in the cvs res can solve the problem of module importing. But to load the png file still be a problem on my machine. On 4月13日, 下午6时21分, marko [EMAIL PROTECTED] wrote: Running leo under python 2.4 solves the problem. On Apr 13, 7:16 pm, marko [EMAIL PROTECTED] wrote: Hello, I've got Leo running on debian linux, but the cleo icons won't load. Leo Log Window... Leo 4.4.8 final, build 1.244 , April 6, 2008 python 2.5.0, Tk 8.4.12, Pmw 1.3 linux2 reading: /home/marko/marko.leo can not import Image module from PIL can not import ImageTk module can not load image: /usr/local/lib/leo/leo/Icons/cleo/pri5.png PIL and ImageTk have been installed and the icon files are in the correct location. Any ideas how to make it work? TIA, Marko --~--~-~--~~~---~--~~ 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: Cleo icons won't work on linux
Can you tell me where to locate the codes of loading icon png files ? Maybe I can do something to help checking the problem and finding a way to solve it . One important reason is that I doubt the problem just occurs on Ubuntu 8.04 or some other similar platform. On 5月21日, 下午8时46分, Edward K. Ream [EMAIL PROTECTED] wrote: On Wed, May 21, 2008 at 7:45 AM, hairui [EMAIL PROTECTED] wrote: It seems nobody care about the problem of can not load *.png. Need us fix the bug by ourselves or just use leo without icon? Please be patient. I must get my Linux box working again before I can fix Linux problems. I hope to do this today. 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: Antialiased fonts in Tk Tkinter in Ubuntu 8.04
On Mon, May 12, 2008 at 12:28 PM, Ville M. Vainio [EMAIL PROTECTED] wrote: Packages which ubuntu thinks depend on tk8.4, like PIL, ImageTk, tkcvs etc., you will need to build from source, but others should work ok. This is a nightmare. Googling download ImageTk brings me to http://packages.ubuntu.com/hardy/python/python-imaging-tk If you can understand this gobbledygook you understand far more than I do. Python simply must clean up its act. Hmm. I just had a thought. Could I (and all of Leo's users) bypass these problems by using ipython? 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: Cleo icons won't work on linux
I had a problem like this in a debian based distro. The bottom line was that the image library used for the cleo icons was installed for python 2.4 and not python 2.5. Reverting to python 2.4 solved the problem, bit broke aspell. Note that python 2.5 is coming for debian testing very soon, and I assume that all the libraries including the image library (whose name escapes me for the moment) will be built for 2.5. Hope that helps, Marko hairui wrote: Can you tell me where to locate the codes of loading icon png files ? Maybe I can do something to help checking the problem and finding a way to solve it . One important reason is that I doubt the problem just occurs on Ubuntu 8.04 or some other similar platform. On 5月21日, 下午8时46分, Edward K. Ream [EMAIL PROTECTED] wrote: On Wed, May 21, 2008 at 7:45 AM, hairui [EMAIL PROTECTED] wrote: It seems nobody care about the problem of can not load *.png. Need us fix the bug by ourselves or just use leo without icon? Please be patient. I must get my Linux box working again before I can fix Linux problems. I hope to do this today. Edward -- High performance computer, software and automation systems for demanding applications Mechtron Systems ABN: 52 149 788 293 329 Old Canobolas Road NASHDALE NSW 2800 mob 04-2860-1801 ph 02-6365-3568 fx 02-6365-3578 --~--~-~--~~~---~--~~ 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: Antialiased fonts in Tk Tkinter in Ubuntu 8.04
On Wed, May 21, 2008 at 8:10 AM, Edward K. Ream [EMAIL PROTECTED] wrote: On Mon, May 12, 2008 at 12:28 PM, Ville M. Vainio [EMAIL PROTECTED] wrote: Packages which ubuntu thinks depend on tk8.4, like PIL, ImageTk, tkcvs etc., you will need to build from source, but others should work ok. This is a nightmare. Googling download ImageTk brings me to http://packages.ubuntu.com/hardy/python/python-imaging-tk If you can understand this gobbledygook you understand far more than I do. Actually, just installing Python2.5.2 as Terry described solved my problems with fonts. Notes: - Here is an excellent how-to for installing packages on ubuntu from sources: https://help.ubuntu.com/community/CompilingEasyHowTo For example, it describes the tar args needed, where to put stuff, etc. - The procedure Terry describes will install from /usr/local/src to /usr/bin - I have no idea where the links files are. But since Python works it should allow Ubuntu to restart even if ubuntu starts using the newly-installed python. And indeed, restarting Ubuntu went well. - I changed 'leo' alias so it explicitly uses /usr/bin/python2.5. That should be enough to guarantee I always use the newly-installed python. Hope this helps everyone. BTW, I am now seeing the get_focus crash. The workaround will probably be to ignore any exception... 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: Cleo icons won't work on linux
On Wed, 21 May 2008 05:54:22 -0700 (PDT) hairui [EMAIL PROTECTED] wrote: One important reason is that I doubt the problem just occurs on Ubuntu 8.04 or some other similar platform. ImageTk is a separate package in Ubuntu, I think Leo requires both PIL (package python-imaging) and the package python-imaging-tk. The problem hasn't been reported for other OSs that I'm aware of, other than people have run in to the PIL not installed problem before. I'd guess the Windows PIL installer puts ImageTk in the same place the package python-imaging-tk puts it. 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: Cleo icons won't work on linux
On Wed, 21 May 2008 23:21:44 +1000 Mark Berndt [EMAIL PROTECTED] wrote: I had a problem like this in a debian based distro. The bottom line was that the image library used for the cleo icons was installed for python 2.4 and not python 2.5. Reverting to python 2.4 solved the problem, bit broke aspell. I think 2.5 is the default for Ubuntu 8.04. But 8.04 is still using Tk 8.4, so if you want antialiased fonts you have to compile python and PIL from source - you can use Ubuntu's Tk 8.5 packages though. 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: Cleo icons won't work on linux
On Wed, May 21, 2008 at 09:13:35AM -0500, Terry Brown wrote: ImageTk is a separate package in Ubuntu, I think Leo requires both PIL (package python-imaging) and the package python-imaging-tk. Yes. I have Leo working perfectly for me on Ubuntu 8.04 and needed to install python-imaging-tk Best regards, ---Kayvan --~--~-~--~~~---~--~~ 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: Cleo icons won't work on linux
Thanks for your reply. I have find out the reason. I installed the PIL module before installing Tk, so the PIL's installer did not install the ImageTk module for me. So smart a installer, but puzzled me for a few days. After re-installing PIL, I can from PIl import ImageTk now. But there is still something wrong with loading the pre1.png like files. On 5月21日, 下午10时13分, Terry Brown [EMAIL PROTECTED] wrote: On Wed, 21 May 2008 05:54:22 -0700 (PDT) hairui [EMAIL PROTECTED] wrote: One important reason is that I doubt the problem just occurs on Ubuntu 8.04 or some other similar platform. ImageTk is a separate package in Ubuntu, I think Leo requires both PIL (package python-imaging) and the package python-imaging-tk. The problem hasn't been reported for other OSs that I'm aware of, other than people have run in to the PIL not installed problem before. I'd guess the Windows PIL installer puts ImageTk in the same place the package python-imaging-tk puts it. 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: Antialiased fonts in Tk Tkinter in Ubuntu 8.04
On Wed, 21 May 2008 08:10:56 -0500 Edward K. Ream [EMAIL PROTECTED] wrote: Packages which ubuntu thinks depend on tk8.4, like PIL, ImageTk, tkcvs etc., you will need to build from source, but others should work ok. This is a nightmare. Googling download ImageTk brings me to http://packages.ubuntu.com/hardy/python/python-imaging-tk I guess I don't really see the problem. If you're not aiming for anti-aliased fonts, you should be able to get all the required imports by: sudo apt-get install python-imaging-tk python-imaging tk8.4 python-tk If leo was a .deb package you'd just install that and it would tell you about the dependencies and ask for permission to install them. It feels to me like it's time to suddenly veer completely off topic. I recently started playing with Virtual Box from Sun, and have installed and run Ubuntu 8.04 under Windows XP, and Windows XP under Ubuntu 8.04. A virtual Ubuntu 8.04 (under Ubuntu 8.04 would be fine) would be a good way of maintaining a virgin Ubuntu install to test Leo installation - Virtual Box has a snapshot feature so you only need to do the initial install of Ubuntu once, and thereafter you can return to a clean state. There are other virtualization solutions, but Virtual Box is very easy to use, which I think recommends it for this type of virtualization application. 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: Cleo icons won't work on linux
I have fixed the problem by removing the ImageTk module from official PIL website and re-installig it by apt-get. Now LEO can load icon files properly. It seems all the problems were caused by the version of ImageTk moudle. I think the steps can solve marko's problem too. On 5月21日, 下午10时17分, Kayvan A. Sylvan [EMAIL PROTECTED] wrote: On Wed, May 21, 2008 at 09:13:35AM -0500, Terry Brown wrote: ImageTk is a separate package in Ubuntu, I think Leo requires both PIL (package python-imaging) and the package python-imaging-tk. Yes. I have Leo working perfectly for me on Ubuntu 8.04 and needed to install python-imaging-tk Best regards, ---Kayvan --~--~-~--~~~---~--~~ 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: Antialiased fonts in Tk Tkinter in Ubuntu 8.04
On Wed, 21 May 2008 17:22:51 +0300 Ville M. Vainio [EMAIL PROTECTED] wrote: - I have no idea where the links files are. But since Python works it should allow Ubuntu to restart even if ubuntu starts using the newly-installed python. And indeed, restarting Ubuntu went well. I'm still a bit concerned about this approach, since it messes with the system python. What will happen when security fixes for python come up? What about the python packages you install with apt-get later on, will they be available normally? Of course all this may work, but caution should be advised. You have a point. So far I've found that all other python packages work, the key to getting that to happen was compiling python from source with the --enable-unicode=ucs4 flag as the default is ucs2 but ubuntu uses ucs4. Packages linked against Tk8.4 have to be compiled from source. You're right about security fixes for python - you'd have to make a point of recompiling from the latest source to get those I guess. Here's my original how to for anti-aliased fonts with Ubuntu 8.04, http://www.mail-archive.com/leo-editor@googlegroups.com/msg00320.html with the addendum that when I moved to a new machine just a few days ago I found I couldn't get PIL to compile from source without changing to occurrences of '#import tk.h' to '#import tcl8.5/tk.h'. I think the real solution is for leo and python to move to gtk - I understand how the relationship between python and tk evolved, but I can't see how tk can sensibly evolve to be a modern gui toolkit without basically duplicating gtk at that point. gtk support is good for linux / windows / mac os X, but probably weaker for some of the other unixen out there on which tk works well - so that's a problem. On the other hand tk doesn't have to go away, and hopefully python 2.6 / 3.0 will be linked against tk 8.5 in future distros anyway, so we're really just experiencing growing pains. At least open source gives us the tools to fix things. 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-as-an-editor branch merged with trunk
Created a branch of Trunk Version 425 Executing the following commands issues the following error: cd c:\program files\python python C:\_Proj\Leo\Trunk\leo\core\runLeo.py C:\_Proj\test.leo Traceback (most recent call last): File C:\_Proj\Leo\Trunk\leo\core\runLeo.py , line 444, in module run(getFileName()) File C:\_Proj\Leo\Trunk\leo\core\runLeo.py , line 70, in run import leo.core.leoGlobals as leoGlobals ImportError: No module named leo.core.leoGlobals Help! TL --~--~-~--~~~---~--~~ 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-as-an-editor branch merged with trunk
On Wed, May 21, 2008 at 11:33 AM, TL [EMAIL PROTECTED] wrote: Created a branch of Trunk Version 425 Executing the following commands issues the following error: cd c:\program files\python python C:\_Proj\Leo\Trunk\leo\core\runLeo.py C:\_Proj\test.leo Traceback (most recent call last): File C:\_Proj\Leo\Trunk\leo\core\runLeo.py , line 444, in module run(getFileName()) File C:\_Proj\Leo\Trunk\leo\core\runLeo.py , line 70, in run import leo.core.leoGlobals as leoGlobals ImportError: No module named leo.core.leoGlobals Help! You must change to the directory above the leo directory, or add that directory to your path. Like this: cd c:\leo.repo\trunk python leo\core\runLeo.py You can automatically load a .leo file. For instance: cd trunk python leo\core\runLeo.py leo\test\test.leo I use the following batch files now: trunk.bat cd c:\leo.repo\trunk leo.bat python leo\core\runLeo.py %1 %2 %3 %4 t.bat leo leo\test\test.leo HTH Edward Edward TL -- Edward K. Ream email: [EMAIL PROTECTED] Leo: http://webpages.charter.net/edreamleo/front.html --~--~-~--~~~---~--~~ 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-as-an-editor branch merged with trunk
On May 20, 3:28 pm, Edward K. Ream [EMAIL PROTECTED] wrote: On Tue, May 20, 2008 at 3:11 PM, Kent Tenney [EMAIL PROTECTED] wrote: Getting there, now Leo starts, clicking on a menu produces the following message in an Error in background function window (the menus do work in spite of this message, IE File-New opens a new Leo file) return c.frame.top.focus_displayof() File /usr/lib/python2.5/lib-tk/Tkinter.py, line 460, in focus_displayof return self._nametowidget(name) File /usr/lib/python2.5/lib-tk/Tkinter.py, line 1076, in nametowidget w = w.children[name] type 'exceptions.KeyError': '#26801432#37367752' Hmm. This looks like a Tk problem. I'll look into this when I reinstall Python on Linux. The fix is now on the trunk. As expected, the fixed simply involved having g.app.gui.get_focus ignore any exception thrown by focus_displayof(). This surely is yet another Tk bug. I am not amused by the quality of Python/Tk on Linux lately. 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 *is* nearing completion
Leo acts like it's treating the --config-single... as a filename to open. Looking at the log entry for added support for --single-config.. I see edits to leoApp.py and leoConfig.py, no mentions of examining argv On Mon, May 19, 2008 at 5:34 PM, Edward K. Ream [EMAIL PROTECTED] wrote: On May 19, 8:02 am, Edward K. Ream [EMAIL PROTECTED] wrote: On Mon, May 19, 2008 at 7:20 AM, Kent Tenney [EMAIL PROTECTED] wrote: Might it make sense to add a command line option, --single-config '/home/ktenney/project/project.leo' which would fetch configuration only from the specified file? It seems this would basically produce the behavior I'm after, using the existing code. Of course it would make sense. I'll do it today. This is now on the trunk. If the command line contains --single-config=path-to-config-file Leo will scan only that .leo file for configuration options. On XP the double quotes are required. Don't know about Linux and the code has not been tested on Linux. Notes: - Leo removes the argument from the sys.argv vector after processing it, so adding this argument should have no effect on the rest of Leo. - path-to-config-file can be either an absolute path or relative to os.curdir. - The configuration file had better be a valid settings.leo file or weird things will happen. Let me know if this works for you. 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-as-an-editor branch merged with trunk
Thanks Edward. It works now. TL --~--~-~--~~~---~--~~ 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 *is* nearing completion
On Wed, May 21, 2008 at 1:41 PM, Kent Tenney [EMAIL PROTECTED] wrote: Leo acts like it's treating the --config-single... as a filename to open. It looks like there was a reversion during the merge. Bzr does not appear to handle renaming directories all that well. I'll put the code back asap. BTW, there were only a few places where a reversion was likely to occur--namely the work I did just before the merge. 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: Vacation until Tuesday
Edward, Enjoy a well deserved vacation from the keyboard! Thanks, Kent On Wed, May 21, 2008 at 6:38 PM, Edward K. Ream [EMAIL PROTECTED] wrote: I'll be vacationing the rest of this week. I think Leo is in pretty good shape: the known problems are mostly configuration problems. See you soon. 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 -~--~~~~--~~--~--~---