Jump to content

Problem "ListBoxEx" in python.


Recommended Posts

Hi i have 1 problem in python with function "ListBoxEx"

 

My problem is:

 

I have this array

		#sintax: title, desc/id, img
		self.logros = [
		[2,"Categoria1, titulo de prueba1","Descripcion logro1/11111",1],
		[2,"Categoria1, titulo de prueba2","Descripcion logro2/11111",1],
		[2,"Categoria1, titulo de prueba3","Descripcion logro3/11111",1],
		
		[3,"Categoria2, titulo de prueba1","Descripcion Logro1/222222",1],
		[3,"Categoria2, titulo de prueba2","Descripcion Logro2/222222",1],
		]

Now i do...

			for a in self.logros:
				if int(pag) == int(a[0]): # if category == [x <---- this
					self.fileListBox.AppendItem(Test(str(a[1]),str(a[2]),a[3]))

Ok for now work fine and add the listbox, but... when i do:

	def __ClearFileList(self):
		self.fileListBox.RemoveAllItems()

And then make again:

			self.__ClearFileList()
                        for a in self.logros:
				if int(pag) == int(a[0]): 
					self.fileListBox.AppendItem(Test(str(a[1]),str(a[2]),a[3]))

i can see the new and old list, the removeallitems doesnt work

 

Someone know why?

 

49f2e4c90981dd4e76a17cff0d21c0f0.png

130b40e1a6ea5d862c4bdc22323ddda3.png

Sorry my bad english is someone know how repair i can give my code to see it or something.

 

Thanks.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.