← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH] BuildConnectivity and re-DisplayBoard in python Refresh

 

I haven't thought through all the alternatives. But we python developers desperately need a way to update the display after adding/removing graphical objects; changing the selection, visibility, layer, width, size of objects; change the visibility of layers or render tab checkboxes.

Ideally we could use the ability to change the colors too (I think that is missing).

If BOARD_COMMIT is the currently chosen way to do these things, then yes, we need this!

Thank you all for your collective efforts. KiCad is awesome and has come a long way in just a few years.

Greg S.

> On Dec 7, 2017, at 2:57 AM, Maciej Sumiński <maciej.suminski@xxxxxxx> wrote:
> 
> I think this patch solves one of the problems the scripting interface
> users face now. Are there any objections to merging the patch? Does any
> Python developer care to comment whether it is a requested change?
> 
> Regards,
> Orson
> 
>> On 12/03/2017 11:54 AM, miles mccoo wrote:
>> Refresh is used in the python domain to refresh the display with the current
>> design. If something has changed, board connectivity likely needs
>> rebuilding.
>> If using GAL canvas, update its display db.
>> 
>> 
>> 
>> I am still looking at board_commit. This patch is to help those who already
>> have working python code. Also, as I mentioned in my board_commit thread,
>> <https://lists.launchpad.net/kicad-developers/msg32063.html> there will be
>> some scripts for which undo functionality is not needed.
>> 
>> also, in the same thread, some suggestions were made on getting GAL to
>> redraw. They all seem to require doing something before changes begin and
>> then calling something else. This patch enables the catch all of "just
>> rebuild whatever needs to be rebuilt"
>> 
>> Miles
>> 
>> for my personal reference: this is my fifth patch.
>> 
>> 
>> 
>> _______________________________________________
>> Mailing list: https://launchpad.net/~kicad-developers
>> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~kicad-developers
>> More help   : https://help.launchpad.net/ListHelp
>> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp



References