Hi, id like to set values for a botton is wxpython by taking that value from a text file.
For this code
button = wx.Button(parent, label = “x”)
and for example on the 1st line of the text file id like to read x. Ive played about with this a bit and I believe I have to do something along the lines of
button = wx.Button(parent, label = “%s(x)”
but am unsure of the syntax or whether im even calling the information from the file right, can anyone help me out?