Dolamite Jenkins
asked on
AttributeError:"InserData object has no attribute"weather2"
AttributeError:"InserData object has no attribute"weather2"
I'm getting error and I dont know why ... it's been some time since I worked with Python ... any ideas why Im gettine this error ...
I'm getting error and I dont know why ... it's been some time since I worked with Python ... any ideas why Im gettine this error ...
self.nameofevet1=''
self.populateVenue(self)
self.weather2 = wx.Choice(self.panel, wx.ID_ANY, choices = self.nameofevet1, name='ShowList')
def populateVenue(self,event):
conn = lite.connect("xxxxxxx")
c = conn.cursor()
c.execute('select * from showlist')
rows=c.fetchall()
#print rows
rRows=[]
for row in rows:
s={}
s['Venue_name'] =row[1]
self.nameofevet1 = s['Venue_name']
print self.nameofevet1
self.weather2.Clear()
self.weather2.AppendItems(self.nameofevet1)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER