[wxPython-users] How to draw a scheme?

Stef Mientki S.Mientki at ru.nl
Mon Oct 1 08:35:55 PDT 2007



Andrea Gavana wrote:
> HI Armando,
>
> On 10/1/07, Armando Serrano Lombillo wrote:
>   
>> Hello list, I have to develop an application and I have chosen python as my
>> programming language. I think that wxPython will be the best choice for the
>> GUI but I have some questions. One of the main things the user will have to
>> do is to build a scheme (diagram) of a system. The program must present the
>> user several types of nodes and connectors as building blocks for the
>> scheme. The user should be able to drag things around, click on the nodes to
>> see/modify it's properties... I have been reading the wxPython docs and
>> looking at the demo and haven't found any example of something quite like
>> what I'm describing, but I'm sure I'm not the first one to do something
>> similar, so... which control could I use for this task? Do I need to use any
>> additional package? Any help will be appreciated.
>>     
>
> I would look at the OGL: you can find it in the demo, under
> "Miscellaneous" ==> "OGL".
>   
OGL looks the best and simplest solution.
I'm trying to use it for physical / electronic / software simulation.
I use ogl-derived shapes and a custom made property editor.
an example can be seen here:
  http://stef.mientki.googlepages.com/jalspy_demo_robot1a.html

There's also another library, called ogllike,
(not maintained anymore I believe),
which might even be more appropriate (has connection points, property 
editor, reshape anchors).

It would be very nice if the standard OGL library could be extended with 
the ogl-like features,
and of course the feature for print  and/or export the canvas.

cheers,
Stef Mientki



Het UMC St Radboud staat geregistreerd bij de Kamer van Koophandel in het handelsregister onder nummer 41055629.
The Radboud University Nijmegen Medical Centre is listed in the Commercial Register of the Chamber of Commerce under file number 41055629.






More information about the wxpython-users mailing list