import neteditTestFunctions as netedit # noqa # Open netedit neteditProcess, match = netedit.setupAndStart(neteditTestRoot) # go to shape mode netedit.shapeMode() # go to shape mode netedit.changeShape("poly") # change color using dialog netedit.changeColorUsingDialog(2, 5) # create polygon netedit.createSquaredPoly(match, 100, 50, 100, True) # change color manually (invalid) netedit.modifyShapeDefaultValue(3, "Vlue") # try to create polygon netedit.createSquaredPoly(match, 200, 50, 100, True) # change color manually (valid) netedit.modifyShapeDefaultValue(3, "red") # create polygon netedit.createSquaredPoly(match, 200, 50, 100, True) # change block netedit.modifyShapeDefaultBoolValue(4)
neteditTestRoot = os.path.join(os.environ.get('TEXTTEST_HOME', testRoot), 'netedit') sys.path.append(neteditTestRoot) import neteditTestFunctions as netedit # noqa # Open netedit neteditProcess, match = netedit.setupAndStart(neteditTestRoot) # go to shape mode netedit.shapeMode() # go to poly mode and select poly netedit.changeShape("poly") # create polygon netedit.createSquaredPoly(match, 100, 50, 100, True) # go to delete mode netedit.deleteMode() # delete created polygon netedit.leftClick(match, 100, 50) # try to delete second polygon (not possible due isn't fill) netedit.leftClick(match, 175, 25) # delete loaded filled polygon netedit.leftClick(match, 275, 25) # Check undos and redos netedit.undo(match, 3)
neteditTestRoot = os.path.join(os.environ.get('TEXTTEST_HOME', testRoot), 'netedit') sys.path.append(neteditTestRoot) import neteditTestFunctions as netedit # noqa # Open netedit neteditProcess, match = netedit.setupAndStart(neteditTestRoot) # go to shape mode netedit.shapeMode() # go to poly mode and select poly netedit.changeShape("poly") # create first polygon netedit.createSquaredPoly(match, 200, 150, 200, True) # create second polygon netedit.createSquaredPoly(match, 400, 150, 200, True) # go to inspect mode netedit.inspectMode() # inspect first polygon netedit.leftClick(match, 100, 50) # Change parameter 0 with a non valid value (Duplicated ID) netedit.modifyAttribute(0, "poly_1") # Change parameter 0 with a non valid value (empty) netedit.modifyAttribute(0, "")