Python programming error question
I am studying wxpython right now and it keeps throwing the error message
Traceback (most recent call last):
File "C:\Python27\dat thing.py", line 20, in <module>
frame=bucky(parent=None,id=-1)
File "C:\Python27\dat thing.py", line 11, in __init__
custom=wx.StaticText(panel, -1, "this is custom" (10,50))
TypeError: 'str' object is not callable
I went to the specified lines and found nothing wrong with them. this is what i have typed for it. Answer quickly please.
import wx
class bucky(wx.Frame):
def __init__(self,parent,id):
wx.Frame.__init__(self,parent,id,'Frame aka window', size=(300,200))
panel=wx.Panel(self)
wx.StaticText(panel, -1, "THIS IS SPARTAAAA", (10,10))
custom=wx.StaticText(panel, -1, "this is custom" (10,50))
custom.SetForegroundColour('white')
custom.SetBackgroundColour('blue')
if __name__=='__main__':
app=wx.PySimpleApp()
frame=bucky(parent=None,id=-1)
frame.Show()
app.MainLoop()