def apply(self):
try:
spd_X = int(self.entry_Speed_X.get())
acc_X = int(self.entry_Acc_X.get())
spd_Y = int(self.entry_Speed_Y.get())
acc_Y = int(self.entry_Acc_Y.get())
spd_Z = int(self.entry_Speed_Z.get())
acc_Z = int(self.entry_Acc_Z.get())
self.result= spd_X, acc_X, spd_Y, acc_Y, spd_Z, acc_Z
print spd_X, spd_Y, spd_Z # or something
except ValueError:
tkMessageBox.showwarning("Bad input","Illegal values, please try again")
dialog_MotorSetting.py 文件源码
python
阅读 18
收藏 0
点赞 0
评论 0
评论列表
文章目录