Jump to content

Tülay

Inactive Member
  • Posts

    35
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Tülay

  1. 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
×
×
  • 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.