# Path: rtlsdr_scanner/misc.py
# def get_resource(resource):
#     if not hasattr(sys, 'frozen'):
#         return pkg_resources.resource_filename('rtlsdr_scanner.res',
#                                                resource)
#     else:
#         return os.path.join(sys._MEIPASS, 'res', resource)


import os
import wx
from rtlsdr_scanner.misc import get_resource
                raise ValueError()
            elif value < -180 or value > 180:
                raise ValueError()
        except ValueError:
            textCtrl.SetForegroundColour("red")
            textCtrl.SetFocus()
            textCtrl.Refresh()
            return False

        textCtrl.SetForegroundColour("black")
        textCtrl.Refresh()
        return True

    def TransferToWindow(self):
        return True

    def TransferFromWindow(self):
        return True

    def Clone(self):
        return ValidatorCoord(self.isLat)


def load_bitmap(name):
    filename = get_resource(name + '.png')

    return wx.Bitmap(filename, wx.BITMAP_TYPE_PNG)


def load_icon(name):

# Path: rtlsdr_scanner/misc.py
# def get_resource(resource):
#     if not hasattr(sys, 'frozen'):
#         return pkg_resources.resource_filename('rtlsdr_scanner.res',
#                                                resource)
#     else:
#         return os.path.join(sys._MEIPASS, 'res', resource)


# Path: rtlsdr_scanner/utils_wx.py
import os
import wx
from rtlsdr_scanner.misc import get_resource

                raise ValueError()
            elif value < -180 or value > 180:
                raise ValueError()
        except ValueError:
            textCtrl.SetForegroundColour("red")
            textCtrl.SetFocus()
            textCtrl.Refresh()
            return False

        textCtrl.SetForegroundColour("black")
        textCtrl.Refresh()
        return True

    def TransferToWindow(self):
        return True

    def TransferFromWindow(self):
        return True

    def Clone(self):
        return ValidatorCoord(self.isLat)


def load_bitmap(name):
    filename = get_resource(name + '.png')

    return wx.Bitmap(filename, wx.BITMAP_TYPE_PNG)


def load_icon(name):

    filename = get_resource(name + '.png')