beremiz
Clone
Summary
Browse
Changes
Graph
Add custom dialog to add/edit comment block in graphical editors
2018-09-26, Andrey Skvortsov
6dca42cd2b2b
Add custom dialog to add/edit comment block in graphical editors
That allows to edit comment and immediately see how it'll be shown on wiresheet.
#!/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"]