Remove redundant Grid.position alias, keep only Grid.pos, closes #308
Grid.position was a redundant alias for Grid.pos. Removed get_position/ set_position functions, getsetters entry, and setProperty/getProperty/ hasProperty branches. Updated all tests to use grid.pos. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c15d836e79
commit
354faca838
12 changed files with 28 additions and 51 deletions
|
|
@ -144,7 +144,7 @@ ui = dijkstra_debug.children
|
|||
ui.append(grid)
|
||||
|
||||
# Position and scale
|
||||
grid.position = (50, 50)
|
||||
grid.pos = (50, 50)
|
||||
grid.size = (400, 400) # 10*40
|
||||
|
||||
# Add title
|
||||
|
|
|
|||
|
|
@ -199,7 +199,7 @@ ui.append(grid)
|
|||
|
||||
# Scale and position grid for better visibility
|
||||
grid.size = (560, 400) # 14*40, 10*40
|
||||
grid.position = (120, 60)
|
||||
grid.pos = (120, 60)
|
||||
|
||||
# Add title
|
||||
title = mcrfpy.Caption(pos=(250, 10), text="Dijkstra Pathfinding Interactive")
|
||||
|
|
|
|||
|
|
@ -291,7 +291,7 @@ ui.append(grid)
|
|||
|
||||
# Scale and position grid for better visibility
|
||||
grid.size = (560, 400) # 14*40, 10*40
|
||||
grid.position = (120, 60)
|
||||
grid.pos = (120, 60)
|
||||
|
||||
# Add title
|
||||
title = mcrfpy.Caption(pos=(250, 10), text="Enhanced Dijkstra Pathfinding")
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ ui = dijkstra_test.children
|
|||
ui.append(grid)
|
||||
|
||||
# Position and scale grid
|
||||
grid.position = (50, 50)
|
||||
grid.pos = (50, 50)
|
||||
grid.size = (500, 300)
|
||||
|
||||
# Add title
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ entity.update_visibility()
|
|||
print("Setting up UI...")
|
||||
ui = vis_test.children
|
||||
ui.append(grid)
|
||||
grid.position = (50, 50)
|
||||
grid.pos = (50, 50)
|
||||
grid.size = (300, 300)
|
||||
|
||||
# Test perspective
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue