def updatePlayCursorPos(self, pos):
w,h = self.GetSize()
# Function receives value between 0 and 1.0. This value needs to be converted into absolute pixels.
pos = math.floor(pos * w)
self.playCursorPos = pos
wx.CallAfter(self.Refresh)
评论列表
文章目录