← board

DECIDE — NilPy GUI: tk-face over PCL, or real Tcl/Tk embed? — RESOLVED

Decision

import tk is satisfied inside lib/pcl/tk.pas by a compile-time platform switch:

{$ifdef WINDOWS}
  {$include windows-tk-compat.inc}   // opt-in emulate/wrap — stub now, fill later
{$else}
  // keep the existing real Tcl/Tk embed — it works, cheap system dep on Linux
{$endif}

Rationale for overriding the earlier (A) "tk-face over PCL" recommendation: don't rip working code. The platform-include keeps Linux untouched and confines all Windows cost to a single opt-in .inc — smaller, incremental, and it doesn't block anything.

Superseded options

Re-filed as the low-prio Track W follow-up [[feature-pcl-tk-windows-compat]].