--- Revision 653133306461 +++ Revision 653636366137 @@ -42,7 +42,7 @@ def onCalc(self, event): - #self.speed.SetValue('Working!!') + if (self.speed.GetValue())=='0': # find speed self.speed.SetValue(str(float(self.distance.GetValue())/float(self.time.GetValue()))) # set speed @@ -51,8 +51,7 @@ elif (self.time.GetValue())=='0': #find time self.time.SetValue(str(float(self.distance.GetValue())/float(self.speed.GetValue()))) # set time - #else: - #self.label4.SetValue('You did not enter zero for any value') + app=wx.App() frame= MyFrame(None, -1, 'Physics Problem Solver')