# Path: pyweed/gui/BaseDialog.py
# class BaseDialog(QtWidgets.QDialog):
#     def __init__(self, parent=None, *args, **kwargs):
#         # On non-Mac platforms, a dialog with a parent will always float above the parent. We want these
#         # windows to be independent, so in that case remove the parent.
#         # (We need the parent on Mac because it allows all windows to share a menu.)
#         if not IS_DARWIN:
#             parent = None
#         super(BaseDialog, self).__init__(parent=parent, *args, **kwargs)
#         # On Linux, dialogs don't have window controls, this can be fixed by turning off that window flag
#         if IS_LINUX:
#             self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.Dialog)
# 
# Path: pyweed/gui/uic/LoggingDialog.py
# class Ui_LoggingDialog(object):
#     def setupUi(self, LoggingDialog):
#     def retranslateUi(self, LoggingDialog):
# 
# Path: pyweed/gui/MyTextEditLoggingHandler.py
# class MyTextEditLoggingHandler(logging.Handler):
#     def __init__(self, signal=None):
#         super(MyTextEditLoggingHandler, self).__init__(logging.INFO)
#         self.signal = signal
# 
#     def emit(self, record):
#         msg = self.format(record)
#         self.signal.emit(msg)


from pyweed.gui.BaseDialog import BaseDialog
from pyweed.gui.uic import LoggingDialog
from pyweed.gui.MyTextEditLoggingHandler import MyTextEditLoggingHandler
from PyQt5 import QtCore
import logging
# -*- coding: utf-8 -*-
"""
Dialog showing logging information.

:copyright:
    Mazama Science, IRIS
:license:
    GNU Lesser General Public License, Version 3
    (http://www.gnu.org/copyleft/lesser.html)
"""




# Path: pyweed/gui/BaseDialog.py
# class BaseDialog(QtWidgets.QDialog):
#     def __init__(self, parent=None, *args, **kwargs):
#         # On non-Mac platforms, a dialog with a parent will always float above the parent. We want these
#         # windows to be independent, so in that case remove the parent.
#         # (We need the parent on Mac because it allows all windows to share a menu.)
#         if not IS_DARWIN:
#             parent = None
#         super(BaseDialog, self).__init__(parent=parent, *args, **kwargs)
#         # On Linux, dialogs don't have window controls, this can be fixed by turning off that window flag
#         if IS_LINUX:
#             self.setWindowFlags(self.windowFlags() & ~QtCore.Qt.Dialog)
# 
# Path: pyweed/gui/uic/LoggingDialog.py
# class Ui_LoggingDialog(object):
#     def setupUi(self, LoggingDialog):
#     def retranslateUi(self, LoggingDialog):
# 
# Path: pyweed/gui/MyTextEditLoggingHandler.py
# class MyTextEditLoggingHandler(logging.Handler):
#     def __init__(self, signal=None):
#         super(MyTextEditLoggingHandler, self).__init__(logging.INFO)
#         self.signal = signal
# 
#     def emit(self, record):
#         msg = self.format(record)
#         self.signal.emit(msg)


# Path: pyweed/gui/LoggingDialog.py
from pyweed.gui.BaseDialog import BaseDialog
from pyweed.gui.uic import LoggingDialog
from pyweed.gui.MyTextEditLoggingHandler import MyTextEditLoggingHandler
from PyQt5 import QtCore
import logging

# -*- coding: utf-8 -*-
"""
Dialog showing logging information.

:copyright:
    Mazama Science, IRIS
:license:
    GNU Lesser General Public License, Version 3
    (http://www.gnu.org/copyleft/lesser.html)
"""




class LoggingDialog(BaseDialog, LoggingDialog.Ui_LoggingDialog):