winIDEA SDK
Loading...
Searching...
No Matches
test_get_set_bool.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
winidea_id = ''
def test_getSetBool():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
optCtrl = ic.COptionController(connMgr, "/IDE/System.Debug.Applications[0].SymbolFiles.File[0]")
value = optCtrl.get_bool("Load")
print(f"Original value of 'SymbolFiles.File[0].Load' attribute: {value}")
print(f"Setting new value ({not value})...")
optCtrl.set_bool("Load", not value)
print(f"Restoring original value ({value})...")
optCtrl.set_bool("Load", value)
if __name__ == "__main__":
test_getSetBool()