コード例 #1
0
ファイル: psyutils.py プロジェクト: xtiankisutsa/FAMA
 def createRadioButton(name, ac, ap):
     button = JRadioButton(name, actionPerformed=ap)
     button.setActionCommand(ac)
     return button
コード例 #2
0
ファイル: StinkParade.py プロジェクト: carvalhomb/tsmells
 def __addRadioButton(self, label, listener):
     button = JRadioButton(label)
     button.setActionCommand(label)
     button.addActionListener(listener)
     self.add(button, self.__createRadioConstraints(label))
     return button