Re: Rendering svg images: please help

2011-03-19 Thread Edward K. Ream
On Mar 20, 12:32 am, "Edward K. Ream" wrote: > Here is the script: There were one or two mistakes: this is the simplest script that will work: import PyQt4.QtCore as QtCore import PyQt4.QtSvg as QtSvg import PyQt4.QtGui as QtGui << define bubbles >> s = g.adjustTripleString(bubbles,c.tab_wid

Re: Rendering svg images: please help

2011-03-19 Thread Edward K. Ream
On Mar 19, 11:15 pm, "Edward K. Ream" wrote: > Why doesn't r.render work???  That's the big mystery. Victory !!! The problem was the svg file itself !!! I did this: << define bubbles >> s = g.adjustTripleString(bubbles,c.tab_width) s = g.toEncodedString(s) where bubbles is defined at http

Re: Rendering svg images: please help

2011-03-19 Thread Edward K. Ream
On Sat, Mar 19, 2011 at 11:20 PM, Terry Brown wrote: > I notice you've been referencing Qt 4.4 docs, have you looked at: > > http://doc.qt.nokia.com/4.7-snapshot/qsvgwidget.html Thanks. It may help. Edward -- You received this message because you are subscribed to the Google Groups "leo-edi

Re: Rendering svg images: please help

2011-03-19 Thread Terry Brown
On Sat, 19 Mar 2011 21:15:07 -0700 (PDT) "Edward K. Ream" wrote: > Maybe the svg is being rendered somewhere where it doesn't show... I notice you've been referencing Qt 4.4 docs, have you looked at: http://doc.qt.nokia.com/4.7-snapshot/qsvgwidget.html ? Cheers -Terry -- You received this m

Re: Rendering svg images: please help

2011-03-19 Thread Edward K. Ream
On Mar 19, 10:50 pm, "Edward K. Ream" wrote: > Again, any help would be greatly appreciated. At last, a bit of progress. I added painter.drawText, with a QPoint that depends on the count. The text is drawn, and moves down the window as paint events get generated (thereby increasing the count):

Rendering svg images: please help

2011-03-19 Thread Edward K. Ream
I seem to be close, but I must be missing something. Here is what I have: Q import PyQt4.QtCore as QtCore import PyQt4.QtSvg as QtSvg import PyQt4.QtGui as QtGui import PyQt4.QtOpenGL as QtOpenGL path = 'C:/leo.repo/trunk/leo/Icons/arrows.svg' class myWidget (QtSvg.QSvgWidget): def __i

Re: viewrendered & related plugins status

2011-03-19 Thread Edward K. Ream
On Mar 19, 5:40 pm, "Edward K. Ream" wrote: > Well.  Just now I see QSvgWidget:http://doc.trolltech.com/4.4/qsvgwidget.html > This would be an easy experiment for generalizing viewrendered. This leads down a rabbit hole. See: http://doc.trolltech.com/4.4/qtsvg.html and http://doc.trolltech.c

Re: viewrendered & related plugins status

2011-03-19 Thread Edward K. Ream
On Mar 19, 5:36 pm, "Edward K. Ream" wrote: > For example, after pasting a valid .svg (xml) file into the body pane, > the rendering pane reports, after a significant amount of work:: image/ > svg+xml I should add that opening the file in Mozilla doesn't show the graphic either :-) Well. Jus

viewrendered & related plugins status

2011-03-19 Thread Edward K. Ream
I am just about finished with the free_layout and plugins_menu plugins, and I am turning my attention to generalizing the viewrendered plugin. For example, after pasting a valid .svg (xml) file into the body pane, the rendering pane reports, after a significant amount of work:: image/ svg+xml Nat

Re: Bzr revision numbers for trunk of 'leo-editor' ?

2011-03-19 Thread VR
Hello Terry On 19 Mrz., 14:40, Terry Brown wrote: > On Sat, 19 Mar 2011 01:43:49 -0700 (PDT) > > VR wrote: > > Hello Edward & Leo community, > > > I'm puzzled and would like to understand what's going on here, since I > > was always under the impression > > that revision numbers on the trunk - o

scrolledmessage plugin now optionally uses viewrendered plugin

2011-03-19 Thread Edward K. Ream
As of rev 3873, the scrolledmessage plugin will put its message in the rendering pane if it exists. To go back to the old way, set:: @bool scrolledmessage_use_viewrendered = False There are pluses an minuses to this approach: Plus: It uses an already-existing screen area, so there is minima

Re: make script execution directory @path sensitive?

2011-03-19 Thread Ville M. Vainio
On Fri, Mar 18, 2011 at 3:38 PM, Terry Brown wrote: > Should os.chdir() be called to set the current directory to match any > @path directives in effect at the current node when a script is run or > a button pushed?  Seems this would be useful. I have wished this quite often. As it stands, curre

Re: make script execution directory @path sensitive?

2011-03-19 Thread Terry Brown
On Sat, 19 Mar 2011 09:14:15 -0500 "Edward K. Ream" wrote: > On Fri, Mar 18, 2011 at 9:38 AM, Terry Brown wrote: > > Should os.chdir() be called to set the current directory to match any > > @path directives in effect at the current node when a script is run or > > a button pushed?  Seems this w

Re: make script execution directory @path sensitive?

2011-03-19 Thread Edward K. Ream
On Fri, Mar 18, 2011 at 9:38 AM, Terry Brown wrote: > Should os.chdir() be called to set the current directory to match any > @path directives in effect at the current node when a script is run or > a button pushed?  Seems this would be useful. There are several instances of os.chdir and g.chdir

Re: Bzr revision numbers for trunk of 'leo-editor' ?

2011-03-19 Thread Terry Brown
On Sat, 19 Mar 2011 01:43:49 -0700 (PDT) VR wrote: > Hello Edward & Leo community, > > I'm puzzled and would like to understand what's going on here, since I > was always under the impression > that revision numbers on the trunk - or - for that matter on any > branch - would always increase mono

viewrendered & free_layout status

2011-03-19 Thread Edward K. Ream
Here is the state of things as of rev 3872 of the trunk: 1. The viewrendered plugin now supports @bool view-rendered-auto- create. When True, the plugin create the rendering pane automatically on startup, loading & initing free_layout as needed. BTW, I like this setting to be False for most sour

Bzr revision numbers for trunk of 'leo-editor' ?

2011-03-19 Thread VR
Hello Edward & Leo community, I'm puzzled and would like to understand what's going on here, since I was always under the impression that revision numbers on the trunk - or - for that matter on any branch - would always increase monotonically. This impression has been invalidated today for 'leo-e

Re: The way forward with rendering

2011-03-19 Thread Edward K. Ream
On Mar 19, 1:53 am, "Edward K. Ream" wrote: > You can see this right now for rst code: > > - Open the rendering pane with alt-x viewrendered. > - Start typing rst code in the body pane. > - Observe the result, especially when there is an error, and then fix the > error. **Note**: the viewrend