⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 simple.py

📁 这是一些ANTLR parser generator的grammar文件的例子
💻 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 + -