RichTextCtrl text align right

how to align text right and center because wx.TE_RIGHT and wx.TE_CENTER is not working in the code below

class test(wx.Dialog):
def init(self, *args, **kwds):
wx.Dialog.init(self, *args, **kwds)
self.V=rtc.RichTextCtrl(self, size=(400,90),style=wx.TE_RIGHT|rtc.RE_MULTILINE)
if name == ‘main’:
app = wx.App()
dialog = test(None, -1)

dialog.Show()
app.MainLoop()