Skip to content

fix: migrate frontEnd PyQt6 enum scoping and add standalone chatbot launcher#578

Open
apurvafx wants to merge 3 commits into
FOSSEE:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025from
apurvafx:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025
Open

fix: migrate frontEnd PyQt6 enum scoping and add standalone chatbot launcher#578
apurvafx wants to merge 3 commits into
FOSSEE:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025from
apurvafx:eSim-Chat-Bot-Semester-Long-Internship_Autumn-2025

Conversation

@apurvafx

Copy link
Copy Markdown

Related Issues

Relates to the chatbot module PyQt6 migration task under the FOSSEE eSim AI Chatbot internship.

Purpose

The chatbot module (src/chatbot/ + src/frontEnd/Chatbot.py) had already been migrated to PyQt6 but the rest of the frontEnd — Application.py, DockArea.py, Workspace.py — was still on PyQt5, causing AttributeError crashes at runtime since PyQt6 requires fully scoped enums (e.g. Qt.AlignCenterQt.AlignmentFlag.AlignCenter), so the entire frontEnd has now been migrated to PyQt6 to match the chatbot module.

Approach

Migrated all PyQt5-style unscoped enums to PyQt6 scoped equivalents across Application.py, DockArea.py, Workspace.py, and Chatbot.py covering AlignmentFlag, Orientation, WindowType, ScrollBarPolicy, TextElideMode, TextFlag, TextFormat, CursorShape, ItemDataRole, CheckState, QFrame.Shape/Shadow, QTextCursor.MoveOperation/MoveMode, QSizePolicy.Policy, QDialog.DialogCode, and QMessageBox.StandardButton/Icon. Added src/run_chatbot.py as a standalone launcher that inserts src/ into the Python path, initializes a QApplication, imports ChatbotGUI directly from frontEnd.Chatbot, and launches the window — bypassing Application.py entirely so the chatbot can be tested in isolation without depending on parts of the codebase still on PyQt5.

image

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.

1 participant