Connecting a Wire Endpoint to Another Endpoint
To connect the ports on two gates, first make sure you have selected the "Move/Connect" tool from the "Tool" menu.  Then click and hold the left mouse button on the endpoint of one of the ends you wish to connect.  The mouse cursor will change to a soldering iron to indicate that connect mode is active.
Next, drag the mouse toward the other endpoint you wish to connect to, TKGate will automatically introduce any necessary bends and maintain connections with only horizontal and vertical segments.
Finally release the mouse button near the target endpoint.
TKGate will then connect the wires.