def show_gui(): """ Shows a GUI to select dss files to compare and select an input file """ from javax.swing import JPanel, JFrame, JButton, SpringLayout, JTextBox from javax.swing.border import LineBorder textBox1 = JTextBox() textBox2 = JTextBox() file1ChooseButton = JButton("Choose File") file2ChooseButton = JButton("Choose File") contentPane = JPanel(SpringLayout()) contentPane.setBorder(LineBorder(Color.blue)) contentPane.add(JLabel("Alternative DSS File")) contentPane.add(textBox1) contentPane.add(file1ChooseButton) contentPane.add(JLabel("Base DSS File")) contentPane.add(textBox2) contentPane.add(file2ChooseButton) fr = JFrame("Calsim Report Generator") fr.contentPane().add(contentPane) fr.pack();fr.show();