Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from javax.swing import JFrame
- class SwingSample(JFrame):
- def __init__(self):
- super(SwingSample, self).__init__()
- self.initUI()
- def initUI(self):
- self.setTitle("Simple")
- self.setSize(250, 200)
- self.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)
- self.setLocationRelativeTo(None)
- self.setVisible(True)
- if __name__ == '__main__':
- SwingSample();
- print("Hi");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement