def ScatterPlot(self): import plots.scatter_dialog as Scatter dlg = Scatter.ScatterPlotDialog() # show the dialog dlg.show() # Run the dialog event loop dlg.exec_()