runtime/loglevels.py
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Thu, 14 Feb 2019 09:44:19 +0300
changeset 2508 9076249f11eb
parent 1973 cc7a46953471
permissions -rw-r--r--
Rewrite ForceVariableDialog. It's not based on wx.TextEntryDialog

Don't customize standard wx.TextEntryDialog on the fly, implement your
own dialog for that with expected behavior and without any hacks.
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# See COPYING.Runtime file for copyrights details.

LogLevels = ["CRITICAL", "WARNING", "INFO", "DEBUG"]
LogLevelsCount = len(LogLevels)
LogLevelsDict = dict(zip(LogLevels, range(LogLevelsCount)))
LogLevelsDefault = LogLevelsDict["DEBUG"]