Tülay 8 Posted December 5, 2015 Share Posted December 5, 2015 (edited) hi, guys how can reverse the text in python like def __init__(self, text): ui.ListBoxEx.Item.__init__(self) self.canLoad=100 self.text=text self.textLine=self.__CreateTextLine(text) def __del__(self): ui.ListBoxEx.Item.__del__(self) def GetText(self): return self.text def SetSize(self, width, height): ui.ListBoxEx.Item.SetSize(self, 7*len(self.textLine.GetText()) + 4, height) def __CreateTextLine(self, text): textLine=ui.TextLine() textLine.SetParent(self) textLine.SetPosition(10, 4) textLine.SetText(text) textLine.Show() return textLine Edited August 20, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Eigenartig 7 Posted December 6, 2015 Share Posted December 6, 2015 >>> 'hello world'[::-1] 'dlrow olleh' Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now