here is where I am stuck, I just want what is returned from the print
statement to display in a new frame.
def OnConvert(self, event):
rate = self.tc1.GetValue()
n = self.tc2.GetValue()
acre = self.tc3.GetValue()
bag = self.tc4.GetValue()
app = rate / (n / 100.00)
area = 43.560
totalbags = app * area * acre / bag
print "You Should use a total of", totalbags, "bags!"
Another question, is there anyway I can enter 0.5 into;
here is where I am stuck, I just want what is returned from the print
statement to display in a new frame.
def OnConvert(self, event):
rate = self.tc1.GetValue()
n = self.tc2.GetValue()
acre = self.tc3.GetValue()
bag = self.tc4.GetValue()
app = rate / (n / 100.00)
area = 43.560
totalbags = app * area * acre / bag
print "You Should use a total of", totalbags, "bags!"
frame = wx.Frame(None, title="Frame")
panel = wx.Panel(frame)
st = wx.StaticText(panel, "You Should use a total of %s bags!" % totalbags)
frame.Show()
Another question, is there anyway I can enter 0.5 into;