7maVPUd1PYne3LwrVNT1PS changeset

Changeset653636366137 (b)
Parent653133306461 (a)
ab
4141
4242
4343    def onCalc(self, event):
...
44-        #self.speed.SetValue('Working!!')
44+       
...
4545
4646        if (self.speed.GetValue())=='0': # find speed
4747            self.speed.SetValue(str(float(self.distance.GetValue())/float(self.time.GetValue()))) # set speed
...
5050        elif (self.time.GetValue())=='0': #find time
5151            self.time.SetValue(str(float(self.distance.GetValue())/float(self.speed.GetValue()))) # set time
5252
...
53-        #else:
53-            #self.label4.SetValue('You did not enter zero for any value')
53+       
...
5555
5656app=wx.App()
5757frame= MyFrame(None, -1, 'Physics Problem Solver')
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- 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')