Browse Source

Fix paste problem on Windows

doc-issue-template 0.3.7
MrS0m30n3 9 years ago
parent
commit
24980ceae2
1 changed files with 2 additions and 2 deletions
  1. 4
      youtube_dl_gui/mainframe.py

4
youtube_dl_gui/mainframe.py

@ -69,7 +69,7 @@ class MainFrame(wx.Frame):
parent (wx.Window): Frame parent.
"""
wxEVT_TEXT_PASTE = 10212
wxEVT_TEXT_PASTE = 'wxClipboardTextEvent'
BUTTONS_SIZE = (-1, 30)
BUTTONS_SPACE = (80, -1)
@ -426,7 +426,7 @@ class MainFrame(wx.Frame):
click of the mouse.
"""
if event.GetEventType() == self.wxEVT_TEXT_PASTE:
if event.ClassName == self.wxEVT_TEXT_PASTE:
self._paste_from_clipboard()
else:
wx.TheClipboard.UsePrimarySelection(True)

Loading…
Cancel
Save