We help IT Professionals succeed at work.
Get Started

AttributeError:"InserData object has no attribute"weather2"

Dolamite Jenkins
on
176 Views
Last Modified: 2015-02-25
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 ...

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)

Open in new window

Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE