Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -248,5 +248,6 @@ test_results/
# Keep docs/*.md and tests fixtures tracked; only ignore root-level files
/AGENTS.md
/*.txt
!CubeMain.txt
!CubeMainWorking.txt

# User-specific workspace configurations
workspaces.json
13 changes: 12 additions & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
"settings": {
"multi_column_selection_enabled": true,
"ignore_empty_cells_on_column_select": true,
"debug_mode_enabled": true
"debug_mode_enabled": true,
"show_row_numbers_on_frozen_column": false,
"undo_stack_max_size": 10,
"crosshair_enabled": true,
"crosshair_thickness": 5,
"crosshair_hover_enabled": false,
"freeze_first_column_enabled": true,
"multi_column_select_all_enabled": false,
"workspace_files": [
"F:\\ProjectsNew\\Diablo2TextEditor\\CubeMainWorking.txt",
"F:\\ProjectsNew\\Diablo2TextEditor\\CubeMainNotWorking.txt"
]
}
}
427 changes: 396 additions & 31 deletions custom_widgets.py

Large diffs are not rendered by default.

20 changes: 19 additions & 1 deletion main_v2.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
import sys
import os
from PyQt6.QtWidgets import QApplication
from PyQt6.QtCore import qInstallMessageHandler, QtMsgType
from ui import EditorWindow

def main():
# Suppress noisy Qt logs (e.g., QWidget::paintEngine warnings)
os.environ.setdefault("QT_LOGGING_RULES", "*.debug=false")

def _qt_message_filter(mode, context, message):
# Filter specific noisy warnings
if "QWidget::paintEngine: Should no longer be called" in message:
return
# Forward other messages (skip debug-level to reduce noise)
if mode == QtMsgType.QtDebugMsg:
return
try:
sys.__stderr__.write(message + "\n")
except Exception:
pass

qInstallMessageHandler(_qt_message_filter)
app = QApplication(sys.argv)
window = EditorWindow()
window.setWindowTitle("Diablo II .txt Editor")
Expand All @@ -11,4 +29,4 @@ def main():
sys.exit(app.exec())

if __name__ == "__main__":
main()
main()
Loading
Loading