From 2a888cb7f753328741f9e69aa3e33be92399266a Mon Sep 17 00:00:00 2001 From: andreas <andreas@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Mon, 21 Jun 2010 14:09:48 +0000 Subject: [PATCH] fix in python shell to allow gui update during processig of python command git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2427 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- modules/gui/src/python_shell/python_interpreter.cc | 1 - modules/gui/src/python_shell/python_shell_widget.cc | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gui/src/python_shell/python_interpreter.cc b/modules/gui/src/python_shell/python_interpreter.cc index 0f28c0f5a..059d69ce6 100644 --- a/modules/gui/src/python_shell/python_interpreter.cc +++ b/modules/gui/src/python_shell/python_interpreter.cc @@ -34,7 +34,6 @@ #include <QFile> #include <QDebug> #include <QFile> -#include <QApplication> #include <QStringList> #include <ost/log.hh> diff --git a/modules/gui/src/python_shell/python_shell_widget.cc b/modules/gui/src/python_shell/python_shell_widget.cc index e41fa8a1e..2f91995fb 100644 --- a/modules/gui/src/python_shell/python_shell_widget.cc +++ b/modules/gui/src/python_shell/python_shell_widget.cc @@ -464,6 +464,7 @@ void PythonShellWidget::AppendOutput(unsigned int id,const QString& output) verticalScrollBar()->triggerAction(QAbstractSlider::SliderToMaximum); ensureCursorVisible(); repaint(); + QApplication::processEvents(); } void PythonShellWidget::AppendError(unsigned int id,const QString& output) @@ -483,6 +484,7 @@ void PythonShellWidget::AppendError(unsigned int id,const QString& output) verticalScrollBar()->triggerAction(QAbstractSlider::SliderToMaximum); ensureCursorVisible(); repaint(); + QApplication::processEvents(); } void PythonShellWidget::set_block_type_(const QTextBlock& start, const QTextBlock& end, BlockType type) -- GitLab