mainwindow_actions py port