Manual de wxPython Librería GUI para Python
wx.StaticText(self, -1, 'currency: ', (25, 110))
wx.StaticText(self, -1, str(date), (125, 70 ))
wx.StaticText(self, -1, str(time_), (125, 9 0))
wx.StaticText(self, -1, str(curr), (125, 11 0))
de = wx.StaticText(self, -1, 'Germany', (25 , 150))
de.SetFont(font)
wx.StaticLine(self, -1, (25, 180), (200,1))
locale.setlocale(locale.LC_ALL, ('de_DE', ' UTF8'))
date = time.strftime('%x', tm)
time_ = time.strftime('%X', tm)
curr = locale.currency(100000)
wx.StaticText(self, -1, 'date: ', (25, 200) )
wx.StaticText(self, -1, 'time: ', (25, 220) )
wx.StaticText(self, -1, 'currency: ', (25, 240))
wx.StaticText(self, -1, date, (125, 200))
wx.StaticText(self, -1, time_, (125, 220))
wx.StaticText(self, -1, curr, (125, 240))
de = wx.StaticText(self, -1, 'Slovakia', (2 5, 280))
de.SetFont(font)
wx.StaticLine(self, -1, (25, 310), (200,1))
locale.setlocale(locale.LC_ALL, ('sk_SK', ' UTF8'))
date = time.strftime('%x', tm)
time_ = time.strftime('%X', tm)
curr = locale.currency(100000)
wx.StaticText(self, -1, 'date: ', (25, 330) )
wx.StaticText(self, -1, 'time: ', (25, 350) )
wx.StaticText(self, -1, 'currency: ', (25, 370))
wx.StaticText(self, -1, str(date), (125, 33 0))
wx.StaticText(self, -1, str(time_), (125, 3 50))
wx.StaticText(self, -1, str(curr), (125, 37 0))
self.Centre()
self.Show(True)
app = wx.App()
Locale(None, -1, 'Locale')
app.MainLoop()
Usamos el estándar incorporado el módulo locale para trabajar con configuraciones locales. En nuestro
ejemplo, mostraremos varios formatos de fecha, tiempo y moneda en el EEUU, Alemania y Eslovaquia.
locale.setlocale(locale.LC_ALL, ('de_DE', 'UTF8'))
Aquí fijamos un objeto local para Alemania. LC_ALL es una combinación de varias configuraciones
Fuente: http://www.zetcode.com/wxpython/ Página 109 de 214