# Path: rtlsdr_scanner/constants.py
# WINFUNC = ["Bartlett", numpy.bartlett,
#            "Blackman", numpy.blackman,
#            "Hamming", numpy.hamming,
#            "Hanning", numpy.hanning]


import wx
from wx.lib.masked.numctrl import NumCtrl
from rtlsdr_scanner.constants import WINFUNC
        sizerGrid.Add(self.choiceFunc, pos=(0, 1),
                      flag=wx.ALL | wx.EXPAND, border=5)
        sizerGrid.Add(textRatio, pos=(1, 0),
                      flag=wx.ALL, border=5)
        sizerGrid.Add(self.slideRatio, pos=(1, 1),
                      flag=wx.ALL | wx.EXPAND, border=5)
        sizerGrid.Add(sizerButtons, pos=(2, 1),
                      flag=wx.ALIGN_RIGHT | wx.ALL, border=5)

        self.SetSizerAndFit(sizerGrid)

        self.Bind(wx.EVT_BUTTON, self.__on_ok, buttonOk)

    def __on_ok(self, _event):
        self.settings.smoothFunc = self.choiceFunc.GetStringSelection()
        self.settings.smoothRatio = self.slideRatio.GetValue()

        self.EndModal(wx.ID_OK)


class DialogPeakThreshold(wx.Dialog):
    def __init__(self, parent, settings):
        wx.Dialog.__init__(self, parent=parent, title='Peak Thresold')

        self.settings = settings

        textThres = wx.StaticText(self, label='Threshold (dB)')
        self.ctrlThres = NumCtrl(self, integerWidth=3)
        self.ctrlThres.SetValue(settings.peaksThres)


# Path: rtlsdr_scanner/constants.py
# WINFUNC = ["Bartlett", numpy.bartlett,
#            "Blackman", numpy.blackman,
#            "Hamming", numpy.hamming,
#            "Hanning", numpy.hanning]


# Path: rtlsdr_scanner/dialogs_toolbars.py
import wx
from wx.lib.masked.numctrl import NumCtrl
from rtlsdr_scanner.constants import WINFUNC

        sizerGrid.Add(self.choiceFunc, pos=(0, 1),
                      flag=wx.ALL | wx.EXPAND, border=5)
        sizerGrid.Add(textRatio, pos=(1, 0),
                      flag=wx.ALL, border=5)
        sizerGrid.Add(self.slideRatio, pos=(1, 1),
                      flag=wx.ALL | wx.EXPAND, border=5)
        sizerGrid.Add(sizerButtons, pos=(2, 1),
                      flag=wx.ALIGN_RIGHT | wx.ALL, border=5)

        self.SetSizerAndFit(sizerGrid)

        self.Bind(wx.EVT_BUTTON, self.__on_ok, buttonOk)

    def __on_ok(self, _event):
        self.settings.smoothFunc = self.choiceFunc.GetStringSelection()
        self.settings.smoothRatio = self.slideRatio.GetValue()

        self.EndModal(wx.ID_OK)


class DialogPeakThreshold(wx.Dialog):
    def __init__(self, parent, settings):
        wx.Dialog.__init__(self, parent=parent, title='Peak Thresold')

        self.settings = settings

        textThres = wx.StaticText(self, label='Threshold (dB)')
        self.ctrlThres = NumCtrl(self, integerWidth=3)
        self.ctrlThres.SetValue(settings.peaksThres)


        sizerButtons = wx.StdDialogButtonSizer()