📄 simple.py
字号:
"""\Equivalent to the ../awt/simple.py example but using swing componentsinstead of AWT ones."""# This line will import the appropriate swing library for your system (jdk 1.1 or 1.2)from pawt import swingimport javadef exit(e): java.lang.System.exit(0)frame = swing.JFrame('Swing Example', visible=1)button = swing.JButton('Close Me!', actionPerformed=exit)frame.contentPane.add(button)frame.pack()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -