Jump to content

Recommended Posts

hi, guys 

how can reverse the text in python like 

WaPX0NO.png

  1.     def __init__(self, text):
  2.         ui.ListBoxEx.Item.__init__(self)
  3.         self.canLoad=100
  4.         self.text=text
  5.         self.textLine=self.__CreateTextLine(text)
  6.     def __del__(self):
  7.         ui.ListBoxEx.Item.__del__(self)
  8.     def GetText(self):
  9.         return self.text
  10.     def SetSize(self, width, height):
  11.         ui.ListBoxEx.Item.SetSize(self, 7*len(self.textLine.GetText()) + 4, height)
  12.     def __CreateTextLine(self, text):
  13.         textLine=ui.TextLine()
  14.         textLine.SetParent(self)
  15.         textLine.SetPosition(10, 4)
  16.         textLine.SetText(text)
  17.         textLine.Show()
  18.         return textLine
Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/9576-how-can-reverse-the-text-in-python/
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.