Skip to content

Commit 8509138

Browse files
committed
FIX rename python file
1 parent c546fec commit 8509138

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

src/gh/components/DF_http_listener/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Rhino
99
import Rhino.Geometry as rg
1010
import scriptcontext as sc
11-
from diffCheck import df_gh_canvas
11+
from diffCheck import df_gh_canvas_utils
1212

1313

1414
class DFHTTPListener(component):
@@ -20,8 +20,8 @@ def __init__(self):
2020
except NameError:
2121
pass
2222

23-
df_gh_canvas.add_button(ghenv.Component, "Load", 0, x_offset=60) # noqa: F821
24-
df_gh_canvas.add_panel(ghenv.Component, "Ply_url", "https://github.com/diffCheckOrg/diffCheck/raw/refs/heads/main/tests/test_data/cube_mesh.ply", 1, 60, 20) # noqa: F821
23+
df_gh_canvas_utils.add_button(ghenv.Component, "Load", 0, x_offset=60) # noqa: F821
24+
df_gh_canvas_utils.add_panel(ghenv.Component, "Ply_url", "https://github.com/diffCheckOrg/diffCheck/raw/refs/heads/main/tests/test_data/cube_mesh.ply", 1, 60, 20) # noqa: F821
2525

2626
def RunScript(self,
2727
i_load: bool,

src/gh/components/DF_tcp_listener/code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import scriptcontext as sc
88
import Rhino.Geometry as rg
99
import System.Drawing as sd
10-
from diffCheck import df_gh_canvas
10+
from diffCheck import df_gh_canvas_utils
1111

1212

1313
class DFTCPListener(component):
@@ -19,10 +19,10 @@ def __init__(self):
1919
pass
2020

2121
for idx, label in enumerate(("Start", "Stop", "Load")):
22-
df_gh_canvas.add_button(
22+
df_gh_canvas_utils.add_button(
2323
ghenv.Component, label, idx, x_offset=60) # noqa: F821
24-
df_gh_canvas.add_panel(ghenv.Component, "Host", "127.0.0.1", 3, 60, 20) # noqa: F821
25-
df_gh_canvas.add_panel(ghenv.Component, "Port", "5000", 4, 60, 20) # noqa: F821
24+
df_gh_canvas_utils.add_panel(ghenv.Component, "Host", "127.0.0.1", 3, 60, 20) # noqa: F821
25+
df_gh_canvas_utils.add_panel(ghenv.Component, "Port", "5000", 4, 60, 20) # noqa: F821
2626

2727
def RunScript(self,
2828
i_start: bool,

src/gh/components/DF_visualization_settings/code.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from Grasshopper.Kernel import GH_RuntimeMessageLevel as RML
66

77
from diffCheck import df_visualization
8-
from diffCheck import df_gh_canvas
8+
from diffCheck import df_gh_canvas_utils
99

1010

1111
class DFVisualizationSettings(component):
@@ -22,38 +22,38 @@ def __init__(self):
2222
X_cord = params[j].Attributes.Pivot.X
2323
input_indx = j
2424
if "i_value_type" == params[j].NickName:
25-
df_gh_canvas.add_str_valuelist(
25+
df_gh_canvas_utils.add_str_valuelist(
2626
ghenv.Component, # noqa: F821
2727
self.poss_value_types,
2828
"DF_value_t",
2929
input_indx, X_cord, Y_cord)
3030
if "i_palette" == params[j].NickName:
31-
df_gh_canvas.add_str_valuelist(
31+
df_gh_canvas_utils.add_str_valuelist(
3232
ghenv.Component, # noqa: F821
3333
self.poss_palettes,
3434
"DF_palette",
3535
input_indx, X_cord, Y_cord)
3636
if "i_legend_height" == params[j].NickName:
37-
df_gh_canvas.add_slider(
37+
df_gh_canvas_utils.add_slider(
3838
ghenv.Component, # noqa: F821
3939
"DF_legend_height",
4040
input_indx,
4141
0.000, 20.000, 10.000,
4242
X_cord, Y_cord)
4343
if "i_legend_width" == params[j].NickName:
44-
df_gh_canvas.add_slider(
44+
df_gh_canvas_utils.add_slider(
4545
ghenv.Component, # noqa: F821
4646
"DF_legend_width",
4747
input_indx,
4848
0.000, 2.000, 0.500,
4949
X_cord, Y_cord)
5050
if "i_legend_plane" == params[j].NickName:
51-
df_gh_canvas.add_plane_object(
51+
df_gh_canvas_utils.add_plane_object(
5252
ghenv.Component, # noqa: F821
5353
"DF_legend_plane",
5454
input_indx, X_cord, Y_cord)
5555
if "i_histogram_scale_factor" == params[j].NickName:
56-
df_gh_canvas.add_slider(
56+
df_gh_canvas_utils.add_slider(
5757
ghenv.Component, # noqa: F821
5858
"DF_histogram_scale_factor",
5959
input_indx,

src/gh/components/DF_websocket_listener/code.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Rhino.Geometry as rg
99
import System.Drawing as sd
1010
from websockets.server import serve
11-
from diffCheck import df_gh_canvas
11+
from diffCheck import df_gh_canvas_utils
1212

1313

1414
class DFWSServerListener(component):
@@ -20,10 +20,10 @@ def __init__(self):
2020
pass
2121

2222
for idx, label in enumerate(("Start", "Stop", "Load")):
23-
df_gh_canvas.add_button(
23+
df_gh_canvas_utils.add_button(
2424
ghenv.Component, label, idx, x_offset=60) # noqa: F821
25-
df_gh_canvas.add_panel(ghenv.Component, "Host", "127.0.0.1", 3, 60, 20) # noqa: F821
26-
df_gh_canvas.add_panel(ghenv.Component, "Port", "9000", 4, 60, 20) # noqa: F821
25+
df_gh_canvas_utils.add_panel(ghenv.Component, "Host", "127.0.0.1", 3, 60, 20) # noqa: F821
26+
df_gh_canvas_utils.add_panel(ghenv.Component, "Port", "9000", 4, 60, 20) # noqa: F821
2727

2828
def RunScript(self,
2929
i_start: bool,
File renamed without changes.

0 commit comments

Comments
 (0)