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)
swing
swingTest.act
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 Wed Sep 7 2022 02:51:04