Browse Source

TextCtrl disable paste event

doc-issue-template
MrS0m30n3 8 years ago
parent
commit
28dddad4ef
1 changed files with 3 additions and 3 deletions
  1. 6
      youtube_dl_gui/mainframe.py

6
youtube_dl_gui/mainframe.py

@ -654,9 +654,9 @@ class MainFrame(wx.Frame):
else:
textctrl = wx.TextCtrl(self._panel, style=style)
if event_handler is not None:
textctrl.Bind(wx.EVT_TEXT_PASTE, event_handler)
textctrl.Bind(wx.EVT_MIDDLE_DOWN, event_handler)
#if event_handler is not None:
#textctrl.Bind(wx.EVT_TEXT_PASTE, event_handler)
#textctrl.Bind(wx.EVT_MIDDLE_DOWN, event_handler)
if os.name == 'nt':
# Enable CTRL+A on Windows

Loading…
Cancel
Save