Integer Input

maybe you need:
b2 = eval(self.b1.GetValue())

···

On Sun, 25 Jan 2004 20:13:24 -0000, <ihilton@fairadsl.co.uk> wrote:

I have been trying to rewrite an existing python routine in wxPython and I am
struggling with reading numeric values in from a text box.

In python I used the following statements

Label(master, text="Beam Load - kg").place(x=20, y=40)
self.e1=Entry(master, width=6)

and used the data using

self.e1.get()

and had no problems.

In wxPython I have tried

self.b1 = wxTextCtrl(self, 20, "", wxPoint(100, 15), wxSize(45, -1))

b2 = self.b1.GetValue()

and many other option such as int(), wxString etc

Could someone point me in the right direction.

--
Peter Damoc
Hacker Wannabe