PyANGKernel.GKSubPathNewCmd

class GKSubPathNewCmd

Creates a subpath.

Details

The correct way to create this command is to use the function:

GKCommand * createNewCmd( GKType * type ) const;

from the GKModel class.

Once created, and in order to do it use the function:

GKCommandReport * addCommand( GKCommand * aCommand );

from the GKCommander class.

A sample code for creating a new subpath would look like:

cmd = model.createNewCmd( model.getType( "GKSubPath" ))
model.getCommander().addCommand( cmd )
res = cmd.createdObject()

Inheritance diagram of PyANGKernel.GKSubPathNewCmd

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

__init__()