Open eddy-geek opened 1 year ago
As a workaround, commenting the custom paste handler in mainframe.py#L407 works :)
self._url_list = self._create_textctrl(
wx.TE_MULTILINE | wx.TE_DONTWRAP, # self._on_urllist_edit
)
No adverse effect that I can see.
(vim ~/.local/lib/python3.11/site-packages/youtube_dl_gui/mainframe.py +407)
From where you install wxPython:
from the system with dnf
or using pip
?
In this comment wxPython will need compiled with Unicode support . Can share the steps you follow to install yt-dlg
I install Fedora Workstation 38 and follow your workaround
sudo dnf install python3-wxpython4
pip install yt-dlg
and Ctrl-V
working OK. Can see the video demo:
https://github.com/oleksis/youtube-dl-gui/assets/44526468/08766014-7151-48c9-89e4-eb83665bca71
You can share more information to reproduce the error ?
It's about how Fedora 38 with KDE and Wayland implement Clipboard and Primary Selection
Doing the test, work with the settings
System Settings -> General Behavior
General Configuration
Open yt-dlg
with the GDK_BACKEND
environment variable
GDK_BACKEND=x11 yt-dlg
You can watch the following demo video using wxPython
with KDE and Wayland
https://github.com/oleksis/youtube-dl-gui/assets/44526468/f21b9801-1c7a-4677-9880-fd823ed8bdac
@eddy-geek Can test the yt-dlg
version 1.8.6 ?
python3 -m pip install -U git+https://github.com/oleksis/youtube-dl-gui#egg=yt-dlg
python3 -m pip install -U --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ yt-dlg
What is the purpose of your issue?
What operating system do you use ?
Fedora 38, Linux 6.2.15-300.fc38.x86_64 Wayland, KDE Plasma 5.27.4, Qt 5.15.9 Python 3.11.3 wxPython 4.2.0 yt-dlg 1.8.5 from pip
List of actions to perform to reproduce the problem:
Similar symptoms to #122 but I checked paste works with the basic wxpython sample given in https://github.com/wxWidgets/Phoenix/issues/1391
So yt-dlg is doing something weird (maybe #123 regressed this particular environment? I am surprised there is a need for the custom
_paste_from_clipboard
code at all...)