Jump to content

[Python]How to use the SetUpdateEvent call?


Recommended Posts

  • Active+ Member

Hi everyone, How can I use SetUpdateEvent call for EditLine object in Python?

Examp:

self.item_editline.SetUpdateEvent(ui.__mem_func__(self.OnUpdateItemEditLine))
self.item_editline.OnIMEReturn = ui.__mem_func__(self.SearchItensFunc)
self.item_editline.SetEscapeEvent(ui.__mem_func__(self.OnPressEscapeKey))

So when I type a character, I want it to automatically run the OnUpdateItemEditLine function.

(The required function is available in the ui.py file, but it still doesn't work.)

Edited by blaxis
Link to comment
Share on other sites

  • Active+ Member

Like this:
 

self.item_editline.OnIMEUpdate = ui.__mem_func__(self.OnUpdateItemEditLine)

And :
 

	def OnUpdateItemEditLine(self):
		ui.EditLine.OnIMEUpdate(self.item_editline)

		editLineText = self.item_editline.GetText()

 

  • Good 1
Link to comment
Share on other sites

  • Active+ Member
2 hours ago, Abel(Tiger) said:

Like this:
 

self.item_editline.OnIMEUpdate = ui.__mem_func__(self.OnUpdateItemEditLine)

And :
 

	def OnUpdateItemEditLine(self):
		ui.EditLine.OnIMEUpdate(self.item_editline)

		editLineText = self.item_editline.GetText()

 

Thank you very much bro! It worked.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 8

      Granny 2.11.8 3D

    2. 1

      Adding 5 extra bonuses (6/7 but till 10) causing CClientManager::RESULT_ITEM_LOAD raises error: Cannot access memory at address Dump

    3. 1

      Adding 5 extra bonuses (6/7 but till 10) causing CClientManager::RESULT_ITEM_LOAD raises error: Cannot access memory at address Dump

    4. 2

      Where can i found the armors

    5. 1

      Snus2 German Server [ START 08.06.24 ]

    6. 1

      [C++] PROTECTION DMG HACK

    7. 2

      Where can i found the armors

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.