def onCommand( self, event ):
if wx.GetMouseState().LeftIsDown():
x = self.sCommand.ScreenToClient(wx.GetMousePosition()).x
val = self.sCommand.GetMin() + (self.sCommand.GetMax() - self.sCommand.GetMin()) * x / self.sCommand.GetSize().x
self.sCommand.SetValue(val)
评论列表
文章目录