Skip to content

Commit 36a6a64

Browse files
committed
arg defaults
1 parent 59bf0be commit 36a6a64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NodeGraphQt/base/port.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def lock(self):
141141
This is the same as calling :meth:`Port.set_locked` with the arg
142142
set to ``True``
143143
"""
144-
self.set_locked(True, connected_ports=False)
144+
self.set_locked(True, connected_ports=True)
145145

146146
def unlock(self):
147147
"""
@@ -151,9 +151,9 @@ def unlock(self):
151151
This is the same as calling :meth:`Port.set_locked` with the arg
152152
set to ``False``
153153
"""
154-
self.set_locked(False, connected_ports=False)
154+
self.set_locked(False, connected_ports=True)
155155

156-
def set_locked(self, state=False, connected_ports=False):
156+
def set_locked(self, state=False, connected_ports=True):
157157
"""
158158
Sets the port locked state. When locked pipe connections can't be
159159
connected or disconnected from this port.

0 commit comments

Comments
 (0)