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:
John McCardle 2026-04-09 22:18:30 -04:00
commit 354faca838
12 changed files with 28 additions and 51 deletions

View file

@ -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

View file

@ -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")

View file

@ -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")

View file

@ -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

View file

@ -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