add python api FocusOnItem
This commit is contained in:
committed by
Seth Hillbrand
parent
b5eee9dd7e
commit
9d4e0ba439
@@ -84,7 +84,6 @@ void ScriptingOnDestructPcbEditFrame( PCB_EDIT_FRAME* aPcbEditFrame )
|
||||
s_PcbEditFrame = nullptr;
|
||||
}
|
||||
|
||||
|
||||
BOARD* LoadBoard( wxString& aFileName )
|
||||
{
|
||||
if( aFileName.EndsWith( KiCadPcbFileExtension ) )
|
||||
@@ -457,6 +456,14 @@ std::deque<BOARD_ITEM*> GetCurrentSelection()
|
||||
return items;
|
||||
}
|
||||
|
||||
void FocusOnItem( BOARD_ITEM* aItem, PCB_LAYER_ID aLayer )
|
||||
{
|
||||
if( s_PcbEditFrame )
|
||||
{
|
||||
s_PcbEditFrame->FocusOnItem( aItem, aLayer );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bool IsActionRunning()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user