beremiz
Clone
Summary
Browse
Changes
Graph
Fix exception when canvas becomes null because of window resize, and avoid useless parameter+condition in GetLogicalDC
wxPython4
2021-09-05, Edouard Tisserant
3d736248ab3b
Fix exception when canvas becomes null because of window resize, and avoid useless parameter+condition in GetLogicalDC
#!/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"]