@Shining-Blue: Wie alt bist du denn?? Simula gibts schon seit den 60ern

Na, na ,na - nicht so indeiskretDarii hat geschrieben:@Shining-Blue: Wie alt bist du denn?? Simula gibts schon seit den 60ern
Code: Alles auswählen
from MainFrame import MainFrame
import locale
import gettext
import os
import sys
import wx
from AppKit import NSLocale
import platform
APPDIR = os.path.split( os.path.realpath( sys.argv[0] ) )[0]
LOCALEDIR = os.path.join( APPDIR, "locale" )
class MainApp( wx.App ):
def OnInit( self ):
wx.InitAllImageHandlers()
MainWindow = MainFrame( None, -1, "" )
self.SetTopWindow( MainWindow )
MainWindow.Show()
return 1
# end of class MainApp
if __name__ == "__main__":
# Plattform erkennen
if platform.system() == 'Windows':
locale.setlocale( locale.LC_ALL, '' )
language_code, encoding = locale.getlocale()
elif platform.system() == 'Darwin':
language_code = NSLocale.currentLocale().localeIdentifier()
encoding = unicode
else:
locale.setlocale( locale.LC_ALL, '' )
language_code, encoding = locale.getlocale()
# Localelize
gettext.bindtextdomain( 'ScaleIt4BB', LOCALEDIR )
gettext.install( 'ScaleIt4BB', LOCALEDIR, language_code, encoding )
ScaleIt4BB = MainApp( 0 )
ScaleIt4BB.MainLoop()