是否有可能通過wxpython獲取對象在點(x,y)?獲取對象點? wxpython
buton=wx.Button(self, id=wx.ID_ANY, label='object',pos=(10,10), size=(175, 28))
print GetObjectAtPoint(10,10) # this function does not exist
如果有任何與上述類似,那將是很好的,或者如果有,我應該怎麼做的建議。甚至,如果有任何諸如GetObjectsInRange(x1,y1,x2,y2)
這是否與面板兼容? – thelost 2011-12-30 21:25:27
FindWindowAtPoint()是一個模塊函數,不是wxPanel中的成員函數 嘗試 wx.FindWindowAtPoint((0,0)) – 2012-01-01 15:37:28