swingTest.py
Go to the documentation of this file.
1 from javax.swing import *
2 
3 def act(evt):
4  print "punch!!!"
5 
6 f = JFrame()
7 c = f.getContentPane()
8 c.add(JButton("Punch", actionPerformed = act))
9 f.setSize(200,200)
10 f.setVisible(1)
def act(evt)
Definition: swingTest.py:3


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:25