check main case; corrected usage of import

This commit is contained in:
Sebastian Wehling-Benatelli 2014-04-11 19:39:29 +02:00
parent 6af43fc9fd
commit fb2553e980

View File

@ -87,7 +87,7 @@ class MainWindow(QMainWindow):
# create a matplotlib widget # create a matplotlib widget
self.DataPlot = MPLWidget(parent=self) self.DataPlot = MPLWidget(parent=self)
# create a layout inside the blank widget and add the matplotlib widget # create a layout inside the blank widget and add the matplotlib widget
layout = QtGui.QVBoxLayout(self.ui.widget_PlotArea) layout = QVBoxLayout(self.ui.widget_PlotArea)
layout.addWidget(self.DataPlot, 1) layout.addWidget(self.DataPlot, 1)
return layout return layout
@ -131,5 +131,5 @@ def main():
pylot_form.show() pylot_form.show()
pylot_app.exec_() pylot_app.exec_()
if __name__ == "__main__":
main() main()