# Path: rtlsdr_scanner/utils_wx.py
# def load_bitmap(name):
#     filename = get_resource(name + '.png')
# 
#     return wx.Bitmap(filename, wx.BITMAP_TYPE_PNG)
# 
# Path: rtlsdr_scanner/version.py
# VERSION = [1, 3, 2]


import multiprocessing
import platform
import sys
import matplotlib
import numpy
import serial
import wx
                import visvis as vv
from PIL import Image
from rtlsdr_scanner.utils_wx import load_bitmap
from rtlsdr_scanner.version import VERSION
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#





class DialogSysInfo(wx.Dialog):
    def __init__(self, parent):
        wx.Dialog.__init__(self, parent=parent, title="System Information")

        textVersions = wx.TextCtrl(self,
                                   style=wx.TE_MULTILINE |
                                   wx.TE_READONLY |
                                   wx.TE_DONTWRAP |
                                   wx.TE_NO_VSCROLL)
        buttonOk = wx.Button(self, wx.ID_OK)

        self.__populate_versions(textVersions)

        sizer = wx.BoxSizer(wx.VERTICAL)
        sizer.Add(textVersions, 1, flag=wx.ALL, border=10)
        sizer.Add(buttonOk, 0, flag=wx.ALL | wx.ALIGN_RIGHT, border=10)
        self.SetSizerAndFit(sizer)
        self.Centre()

    def __populate_versions(self, control):
        imageType = 'Pillow'

# Path: rtlsdr_scanner/utils_wx.py
# def load_bitmap(name):
#     filename = get_resource(name + '.png')
# 
#     return wx.Bitmap(filename, wx.BITMAP_TYPE_PNG)
# 
# Path: rtlsdr_scanner/version.py
# VERSION = [1, 3, 2]


# Path: rtlsdr_scanner/dialogs_help.py
import multiprocessing
import platform
import sys
import matplotlib
import numpy
import serial
import wx
                import visvis as vv
from PIL import Image
from rtlsdr_scanner.utils_wx import load_bitmap
from rtlsdr_scanner.version import VERSION

#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#





class DialogSysInfo(wx.Dialog):
    def __init__(self, parent):
        wx.Dialog.__init__(self, parent=parent, title="System Information")

        textVersions = wx.TextCtrl(self,
                                   style=wx.TE_MULTILINE |
                                   wx.TE_READONLY |
                                   wx.TE_DONTWRAP |
                                   wx.TE_NO_VSCROLL)
        buttonOk = wx.Button(self, wx.ID_OK)

        self.__populate_versions(textVersions)

        sizer = wx.BoxSizer(wx.VERTICAL)
        sizer.Add(textVersions, 1, flag=wx.ALL, border=10)
        sizer.Add(buttonOk, 0, flag=wx.ALL | wx.ALIGN_RIGHT, border=10)
        self.SetSizerAndFit(sizer)
        self.Centre()

    def __populate_versions(self, control):
        imageType = 'Pillow'

        try: