Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, setting):
langList = list(LANGCODES.keys())
wx.Frame.__init__(self, None, -1, 'CopyTranslator ' + version,
size=(465, 345))
self.SetIcon(wx.Icon(logopath, wx.BITMAP_TYPE_ICO))
self.SetWindowStyle(MainFrame.mainStyle)
self.setting = setting
TextPanel = wx.Panel(self, -1)
buttonPanel = wx.Panel(self, -1)
# 始终置顶按钮
self.topCheck = wx.CheckBox(buttonPanel, -1, 'Stay on top')
self.Bind(wx.EVT_CHECKBOX, self.setting.ReverseStayTop, self.topCheck)
# 自动检测语言按钮
self.detectCheck = wx.CheckBox(buttonPanel, -1, 'Auto detect language')
self.Bind(wx.EVT_CHECKBOX, self.setting.ReverseDete, self.detectCheck)
def __init__(self, setting):
langList = list(LANGCODES.keys())
wx.Frame.__init__(self, None, -1, 'CopyTranslator ' + version,
size=(465, 345))
self.SetIcon(wx.Icon(logopath, wx.BITMAP_TYPE_ICO))
self.SetWindowStyle(MainFrame.mainStyle)
self.setting = setting
TextPanel = wx.Panel(self, -1)
buttonPanel = wx.Panel(self, -1)
# 始终置顶按钮
self.topCheck = wx.CheckBox(buttonPanel, -1, 'Stay on top')
self.Bind(wx.EVT_CHECKBOX, self.setting.ReverseStayTop, self.topCheck)
# 自动检测语言按钮
self.detectCheck = wx.CheckBox(buttonPanel, -1, 'Auto detect language')
self.Bind(wx.EVT_CHECKBOX, self.setting.ReverseDete, self.detectCheck)