是否有可能通过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