Skip to content

fix(gui): resolve Tkinter RIGHT/LEFT constant collision#1316

Open
houtan-rocky wants to merge 1 commit into
aimacode:masterfrom
houtan-rocky:master
Open

fix(gui): resolve Tkinter RIGHT/LEFT constant collision#1316
houtan-rocky wants to merge 1 commit into
aimacode:masterfrom
houtan-rocky:master

Conversation

@houtan-rocky

@houtan-rocky houtan-rocky commented Oct 17, 2025

Copy link
Copy Markdown

Fixes _tkinter.TclError: bad side "-1" caused by AIMA's internal RIGHT = -1 overriding tkinter.RIGHT due to wildcard imports.
Replaced from tkinter import * with import tkinter as tk and prefixed all Tkinter calls to isolate namespaces.

  • Affected file: gui/romania_problem.py
  • Python 3.4+ compliant
  • No functional or layout changes
  • Tested on Python 3.10–3.13 (Windows)

@orsenthil orsenthil left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@houtan-rocky

Copy link
Copy Markdown
Author

@antmarakis @norvig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants