Advertisement
mgostih

funzionespeed

Feb 6th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. def Speed_func(self):
  2.         if self.Speed.GetText() == "Turn On":
  3.                         try:
  4.                                 self.Speed.SetText("Turn Off")
  5.                                 chr.SetMoveSpeed(int(self.value.GetText()))
  6.                         except:
  7.                                 return False
  8.                 else:
  9.                         try:
  10.                                 self.Speed.SetText("Turn Off")
  11.                                 chr.SetMoveSpeed(1)
  12.                         except:
  13.                                 return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement