modified:   maingui.py