import wx
class StaticTextFrame(wx.Frame):
    def __init__(self):
        wx.Frame.__init__(self,None,-1,'Static Text Example',size=(400,300))
        panel=wx.Panel(self,-1)
        wx.StaticText(panel,-1,"This ia an Test",(100,10))
        
        rev=wx.StaticText(panel,-1,"StaticText color")
        rev.SetForegroundColour('white')
        rev.SetBackgroundColour('black')

        center=wx.StaticText(panel,-1,"Aligin cener",(100,50),(160,-1),wx.ALIGN_CENTER)
        center.SetForegroundColour('yellow')
        center.SetBackgroundColour('green')

        right=wx.StaticText(panel,-1,"align right",(100,70),(160,-1),wx.ALIGN_RIGHT)
        right.SetForegroundColour('blue')
        right.SetBackgroundColour('red')

        wx.StaticText(panel,-1,"I love you\nyour hair\n your nipple\nyour smile",(220,150),style=wx.ALIGN_RIGHT)

if __name__=='__main__':
	app=wx.PySimpleApp()
	frame=StaticTextFrame()
	frame.Show()
	app.MainLoop()
