From 28dddad4efd58aa976872420fd83214a5e2591d1 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Tue, 11 Oct 2016 16:25:07 +0300 Subject: [PATCH] TextCtrl disable paste event --- youtube_dl_gui/mainframe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index aa81c7c..d99ca72 100644 --- a/youtube_dl_gui/mainframe.py +++ b/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