# Path: Wammu/Locales.py
# def ugettext(message):
#     if _TRANSLATION:
#         if six.PY2:
#             return _TRANSLATION.ugettext(message)
#         return _TRANSLATION.gettext(message)
#     return message


import threading
import wx
import os
import sys
import time
import Wammu.Events
from Wammu.Locales import ugettext as _
                    self.file_descriptor = open(self.filename, 'r')
            else:
                evt = Wammu.Events.LogEvent(txt=''.join(txt))
                wx.PostEvent(self.win, evt)
        self.file_descriptor.close()

class LogFrame(wx.Frame):
    '''
    Window with debug log.
    '''

    def __init__(self, parent, cfg):
        '''
        Creates window and initializes event handlers.
        '''
        self.cfg = cfg
        if cfg.HasEntry('/Debug/X') and cfg.HasEntry('/Debug/Y'):
            pos = wx.Point(
                    cfg.ReadInt('/Debug/X'),
                    cfg.ReadInt('/Debug/Y'))
        else:
            pos = wx.DefaultPosition
        size = wx.Size(
            cfg.ReadInt('/Debug/Width'),
            cfg.ReadInt('/Debug/Height')
        )
        wx.Frame.__init__(
            self,
            parent,
            -1,

# Path: Wammu/Locales.py
# def ugettext(message):
#     if _TRANSLATION:
#         if six.PY2:
#             return _TRANSLATION.ugettext(message)
#         return _TRANSLATION.gettext(message)
#     return message


# Path: Wammu/Logger.py
import threading
import wx
import os
import sys
import time
import Wammu.Events
from Wammu.Locales import ugettext as _

                    self.file_descriptor = open(self.filename, 'r')
            else:
                evt = Wammu.Events.LogEvent(txt=''.join(txt))
                wx.PostEvent(self.win, evt)
        self.file_descriptor.close()

class LogFrame(wx.Frame):
    '''
    Window with debug log.
    '''

    def __init__(self, parent, cfg):
        '''
        Creates window and initializes event handlers.
        '''
        self.cfg = cfg
        if cfg.HasEntry('/Debug/X') and cfg.HasEntry('/Debug/Y'):
            pos = wx.Point(
                    cfg.ReadInt('/Debug/X'),
                    cfg.ReadInt('/Debug/Y'))
        else:
            pos = wx.DefaultPosition
        size = wx.Size(
            cfg.ReadInt('/Debug/Width'),
            cfg.ReadInt('/Debug/Height')
        )
        wx.Frame.__init__(
            self,
            parent,
            -1,

            _('Wammu debug log'),