[wxPython-users] Re: is it possible to reduce the "resize grips" in an OGL shape ?

Roman Rolinsky rolinsky at femagsoft.com
Fri Nov 16 05:19:05 PST 2007


On Thu, 2007-11-15 at 18:14 +0100, Stef Mientki wrote:
> >> I want to create an open source Labview -like programming environment,
> >> with the math-power of Matlab,
> >> but so simple that even children will be able to tell to computer to 
> >> solve their problem !!
> >>     
> >
> > I'm developing something similar actually, to allow visual programming
> > of iterative schemes for numerical simulation systems. See attached
> > screenshot of the editor window. 
> Looks very nice, especially the rectangle lines.
> Are you using ogl or what ?

OGL with some small modifications. Drawing is done using stock OGL
classes, for editing it is necessary to program some event handlers. As
you pointed out OGL is not well-documented, so I had to read the source,
fortunately it is not too complicated. I didn't look at ogllike yet so
no basis to compare them.

> Can you give an impression of how complex the iterative schemes are that 
> you want to simulate.

They are not very complex at the moment - usually some nested loops with
some parts active or not depending on some flags. We wanted to be able
to make them more complex in the future like having a possibility to
dynamically change the order of the execution during run-time.

> > The resulting "programs" can be
> > executed inside the virtual machine environment and can communicate with
> > the user using XRC-based interface.
> What's XRC, do you have a link ?

Mike already answered this.

> I googled for it, but couldn't find much than, it's XML and has 
> something todo with html ?
> Well I was intending to build a very simple internal virtual machine,
> something like an infinite while loop,
> that can be escaped by an exception.
> >  Each program "block" contains a
> > piece of python or shell source code, or executes an external process.
> > Good error/exception handling is the main issue I still have to solve.
> >   
> Why is that a problem ?

We wanted to embed some intelligent error handling in the virtual
machine itself, so that the algorithm could recover from non-critical
problems and restart from some previous known good state (which means we
need to save the history of the execution and to have the possibility to
backtrack).

> I've done something similar, by embedding Python in Delphi,
> and when an error in the Python code appears,
> I get a perfect traceback from Python,
> so I can jump to the problem line in my editor automatically.
> A problem in this approach might be namespace mangling of the program 
> and the user code.
> 
> cheers,
> Stef
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
> 
-- 
Roman Rolinsky <rolinsky at femagsoft.com>
FEMAGSoft





More information about the wxpython-users mailing list