class Btn2(QPushButton):. def hitButton( self , poi):. print (poi). if poi.x() > self .width() / 2 : return True. return False.
確定! 回上一頁