Python SetSelected() doesn't display until view switched
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Expired
|
Wishlist
|
Bug Description
Windows nightly as of July 31, 2017
Executing the following in Scripting Console:
import pcbnew
for m in pcbnew.
m.GetValue(
m.GetReference
for d in m.GraphicalItems():
d.SetSelected()
for d in pcbnew.
d.SetSelected()
The selected items do not appear in OpenGL view until the view is switch to default and back.
Also, adding DRAWSEGMENTS on the board don't show up until the view is switched.
This also happen in Linux and possibly MacOS and, to a limited extent, in 4.0.6 Stable.
Application: kicad
Version: (2017-07-31 revision 67ae5935d)-makepkg, release build
Libraries: wxWidgets 3.0.2
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
- Build Info -
wxWidgets: 3.0.2 (wchar_t,wx containers,
Boost: 1.63.0
Curl: 7.54.0
KiCad - Compiler: GCC 6.3.0 with C++ ABI 1010
Settings: USE_WX_
Changed in kicad: | |
status: | Confirmed → Incomplete |
Changed in kicad: | |
status: | Incomplete → New |
Hi Greg,
For the moment, selection in GAL is not exposed to Python.
You can try using SELECTION_ TOOL::select( BOARD_ITEM* aItem ), but there's no guarantee it will work.
Best,
Tom