diff --git a/widgets/pythonWidget/pythonWidget.cc b/widgets/pythonWidget/pythonWidget.cc index 5449d082eb7b2826db94a0fae06f9bae766219e3..0ada7326a16b5b5c6535a0d379c2f4d8c5725292 100644 --- a/widgets/pythonWidget/pythonWidget.cc +++ b/widgets/pythonWidget/pythonWidget.cc @@ -100,14 +100,14 @@ PythonWidget::PythonWidget(QWidget *parent ) QTextEdit* coreInfo = new QTextEdit( infoTab ); - infoTab->addTab(coreInfo,"Core"); + moduleTab->addTab(coreInfo,"Core"); QString coreDoc = interpreter->runScriptOutput("import pydoc ;import openflipper;html = pydoc.HTMLDoc();object, name = pydoc.resolve(openflipper);page = html.page(pydoc.describe(object), html.document(object, name));print(page)"); coreInfo->setHtml(coreDoc); // Collect all Python Documentation for the OpenFlipper Plugin Modules for ( int i = 0 ; i < pythonPlugins.size() ; ++i ) { - QTextEdit* edit = new QTextEdit( infoTab ); - infoTab->addTab(edit,pythonPlugins[i]); + QTextEdit* edit = new QTextEdit( moduleTab ); + moduleTab->addTab(edit,pythonPlugins[i]); QString data = interpreter->runScriptOutput("import pydoc ;import "+pythonPlugins[i]+";html = pydoc.HTMLDoc();object, name = pydoc.resolve("+pythonPlugins[i]+");page = html.page(pydoc.describe(object), html.document(object, name));print(page)"); edit->setHtml(data); } diff --git a/widgets/pythonWidget/pythonWidget.ui b/widgets/pythonWidget/pythonWidget.ui index 4ec8b135cfaf19552205bcbc6d1b328b5efb63c0..0f17cb298465340026627113478c2af87ffce52c 100644 --- a/widgets/pythonWidget/pythonWidget.ui +++ b/widgets/pythonWidget/pythonWidget.ui @@ -6,66 +6,159 @@ 0 0 - 994 - 659 + 1474 + 1004 About OpenFlipper - + - - - 0 + + + Qt::Horizontal - - - Python Script - - + + + + 0 + 0 + + + + QFrame::StyledPanel + + + QFrame::Raised + + - + - - - false + + + 0 + + + Python Script + + + + + + Qt::Vertical + + + 4 + + + + + 0 + 1 + + + + false + + + + + + 0 + 0 + + + + + + + + + + Python Information + + + + + + true + + + false + + + false + + + true + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;"> +<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> + + + + + - + + + + + Qt::Horizontal + + + + 0 + 0 + + + + + + + + Run + + + + + + + Close + + + true + + + + - - - Python Information - - + + + QFrame::StyledPanel + + + QFrame::Raised + + - - - true - - - false - - - false - - - true - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;"> -<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html> + + + -1 @@ -73,40 +166,6 @@ p, li { white-space: pre-wrap; } - - - - - - Qt::Horizontal - - - - 0 - 0 - - - - - - - - Run - - - - - - - Close - - - true - - - - -