「Jython Swing はじめに」の版間の差分
ナビゲーションに移動
検索に移動
(ページの作成:「==Jython Swing はじめに== [Jython][Python][Jython Swing][Swing] *[http://www.youtube.com/watch?gl=US&v=bqSQEG2Iphc A Graphical User Interface with Jython and Swin…」) |
|||
1行目: | 1行目: | ||
==Jython Swing はじめに== | ==Jython Swing はじめに== | ||
− | [Jython][Python][Jython Swing][Swing] | + | [[Jython][Python][Jython Swing][Swing]] |
*[http://www.youtube.com/watch?gl=US&v=bqSQEG2Iphc A Graphical User Interface with Jython and Swing(You Tube)] | *[http://www.youtube.com/watch?gl=US&v=bqSQEG2Iphc A Graphical User Interface with Jython and Swing(You Tube)] |
2020年2月15日 (土) 08:04時点における版
Jython Swing はじめに
[[Jython][Python][Jython Swing][Swing]]
ソース
# -*- coding:utf-8 -*- from javax.swing import JFrame, JButton, JLabel from java.awt.BorderLayout import NORTH def react(event): message.text = "Thanks for pushing the button" frame = JFrame("My First Swing GUI", size=(300,150)) button = JButton("Push Me", actionPerformed=react) frame.add(button) message = JLabel(" ") frame.add(message, NORTH) frame.visible = True
例
© 2006 矢木浩人