stylefixes

This commit is contained in:
gabriel.pettier 2012-07-29 22:17:02 +02:00
parent 9c68e79665
commit 357e9a2afa
2 changed files with 2 additions and 3 deletions

View File

@ -34,4 +34,3 @@ class TestApp(App):
if __name__ == '__main__':
TestApp().run()

View File

@ -288,7 +288,8 @@ if 'KIVY_NO_CONSOLELOG' not in os.environ:
Logger.addHandler(getattr(sys, '_kivy_logging_handler'))
else:
use_color = os.name != 'nt'
color_fmt = formatter_message('[%(levelname)-18s] %(message)s', use_color)
color_fmt = formatter_message(
'[%(levelname)-18s] %(message)s', use_color)
formatter = ColoredFormatter(color_fmt, use_color=use_color)
console = ConsoleHandler()
console.setFormatter(formatter)
@ -299,4 +300,3 @@ sys.stderr = LogFile('stderr', Logger.warning)
#: Kivy history handler
LoggerHistory = LoggerHistory