Skip to content

Commit f9ef7d0

Browse files
committed
docs(tutorial): change **kwargs with **_kwargs because they are unused
Ref: Kitware/trame-tutorial@adfd845
1 parent 56a48c1 commit f9ef7d0

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

docs/vitepress/guide/tutorial/application.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ The first toolbar callback is the `cube_axes_visibility` callback, which is used
729729

730730
```python
731731
@change("cube_axes_visibility")
732-
def update_cube_axes_visibility(self, cube_axes_visibility, **kwargs):
732+
def update_cube_axes_visibility(self, cube_axes_visibility, **_kwargs):
733733
cube_axes.SetVisibility(cube_axes_visibility)
734734
self.ctrl.view_update()
735735
```
@@ -820,7 +820,7 @@ The `update_mesh_representation` function is found by the @change decorator for
820820

821821
```python
822822
@change("mesh_representation")
823-
def update_mesh_representation(self, mesh_representation, **kwargs):
823+
def update_mesh_representation(self, mesh_representation, **_kwargs):
824824
self.update_representation(mesh_actor, mesh_representation)
825825
self.ctrl.view_update()
826826
```
@@ -831,7 +831,7 @@ Likewise, the `update_contour_representation` function is found by the @change d
831831

832832
```python
833833
@change("contour_representation")
834-
def update_contour_representation(self, contour_representation, **kwargs):
834+
def update_contour_representation(self, contour_representation, **_kwargs):
835835
self.update_representation(contour_actor, contour_representation)
836836
self.ctrl.view_update()
837837
```
@@ -866,7 +866,7 @@ The `update_mesh_color_by_name` function is found by the @change decorator for `
866866

867867
```python
868868
@change("mesh_color_array_idx")
869-
def update_mesh_color_by_name(self, mesh_color_array_idx, **kwargs):
869+
def update_mesh_color_by_name(self, mesh_color_array_idx, **_kwargs):
870870
array = dataset_arrays[mesh_color_array_idx]
871871
self.color_by_array(mesh_actor, array)
872872
self.ctrl.view_update()
@@ -878,7 +878,7 @@ Likewise, the `update_contour_color_by_name` function is found by the @change de
878878

879879
```python
880880
@change("contour_color_array_idx")
881-
def update_contour_color_by_name(contour_color_array_idx, **kwargs):
881+
def update_contour_color_by_name(contour_color_array_idx, **_kwargs):
882882
array = dataset_arrays[contour_color_array_idx]
883883
self.color_by_array(contour_actor, array)
884884
self.ctrl.view_update()
@@ -921,7 +921,7 @@ The `update_mesh_color_preset` function is found by the @change decorator for `m
921921

922922
```python
923923
@change("mesh_color_preset")
924-
def update_mesh_color_preset(self, mesh_color_preset, **kwargs):
924+
def update_mesh_color_preset(self, mesh_color_preset, **_kwargs):
925925
self.use_preset(mesh_actor, mesh_color_preset)
926926
self.ctrl.view_update()
927927
```
@@ -932,7 +932,7 @@ The `update_contour_color_preset` function is found by the @change decorator for
932932

933933
```python
934934
@change("contour_color_preset")
935-
def update_contour_color_preset(self, contour_color_preset, **kwargs):
935+
def update_contour_color_preset(self, contour_color_preset, **_kwargs):
936936
self.use_preset(contour_actor, contour_color_preset)
937937
self.ctrl.view_update()
938938
```
@@ -948,7 +948,7 @@ The `update_mesh_opacity` function is found by the @change decorator for `mesh_o
948948
```python
949949
# Opacity Callbacks
950950
@change("mesh_opacity")
951-
def update_mesh_opacity(self, mesh_opacity, **kwargs):
951+
def update_mesh_opacity(self, mesh_opacity, **_kwargs):
952952
mesh_actor.GetProperty().SetOpacity(mesh_opacity)
953953
self.ctrl.view_update()
954954
```
@@ -959,7 +959,7 @@ The `update_contour_opacity` function is found by the @change decorator for `con
959959

960960
```python
961961
@change("contour_opacity")
962-
def update_contour_opacity(self, contour_opacity, **kwargs):
962+
def update_contour_opacity(self, contour_opacity, **_kwargs):
963963
contour_actor.GetProperty().SetOpacity(contour_opacity)
964964
self.ctrl.view_update()
965965
```
@@ -975,7 +975,7 @@ The `update_contour_by` function updates the `SetInputArrayToProcess` of the `co
975975
```python
976976
# Contour Callbacks
977977
@change("contour_by_array_idx")
978-
def update_contour_by(self, contour_by_array_idx, **kwargs):
978+
def update_contour_by(self, contour_by_array_idx, **_kwargs):
979979
array = dataset_arrays[contour_by_array_idx]
980980
contour_min, contour_max = array.get("range")
981981
contour_step = 0.01 * (contour_max - contour_min)
@@ -1001,7 +1001,7 @@ The `update_contour_value` function is found by the @change decorator for `conto
10011001

10021002
```python
10031003
@change("contour_value")
1004-
def update_contour_value(self, contour_value, **kwargs):
1004+
def update_contour_value(self, contour_value, **_kwargs):
10051005
contour.SetValue(0, float(contour_value))
10061006
self.ctrl.view_update()
10071007
```

0 commit comments

Comments
 (0)