Skip to content
Snippets Groups Projects
Commit 2a888cb7 authored by andreas's avatar andreas
Browse files

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
parent 3c986088
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,6 @@
#include <QFile>
#include <QDebug>
#include <QFile>
#include <QApplication>
#include <QStringList>
#include <ost/log.hh>
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment