Hey I Am Getting the error while processing this python code . Please Note that i am new to python . Thanks
Here is the code
import wx
class harry(wx.Frame):
def __init__(self,parent,id):
wx.Frame.__init__(self,parent,id,'Frame aka Window', size=(300,200))
panel=wx.Panel(self)
box = wx.TestEntryDialog(None ,"Whats ur Name ?" ,"Title","default text")
if box.showModal()==wx.Id_OK:
answer=box.getValue()
if __name__=='__main__':
app = wx.App(False)
frame = harry(parent=None,id=-1)
frame.Show()
app.MainLoop()
The error i get is
Traceback (most recent call last):
File "C:\pybuck\pytuts9.py", line 14, in <module>
frame = harry(parent=None,id=-1)
File "C:\pybuck\pytuts9.py", line 8, in __init__
box = wx.TestEntryDialog(None ,"Whats ur Name ?" ,"Title","default text")
AttributeError: 'module' object has no attribute 'TestEntryDialog'
My Motive Is to input the user to write its input ( like name ) in the window aka frame thats pops up ! Thanks , Harry