Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

Problem "ListBoxEx" in python.


ѕeмa™

Question

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.

Link to comment
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


  • Read our Rules
  • Activity

    1. 1

      [HELP] Costume bonusing with item not working

    2. 10

      Fix Taskbar Highlight Python

    3. 13

      Reduce server memory usage

    4. 87

      How To Enchant & Transform Costume

    5. 2

      Old m2 function

  • Recently Browsing

    • No registered users viewing this page.

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.