-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
remove outdated gtk package from code #26590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
f291383
3c1dfa8
141dd47
b4061f8
b9c001f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,21 +18,20 @@ | |
On Linux, install xclip or xsel via package manager. For example, in Debian: | ||
sudo apt-get install xclip | ||
|
||
Otherwise on Linux, you will need the gtk, qtpy or PyQt modules installed. | ||
Otherwise on Linux, you will need the qtpy or PyQt modules installed. | ||
qtpy also requires a python-qt-bindings module: PyQt4, PyQt5, PySide, PySide2 | ||
|
||
gtk and PyQt4 modules are not available for Python 3, | ||
PyQt4 modules are not available for Python 3, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm is this still true for PyQt4? We only support Python3 now so if another package doesn’t it wouldn’t make sense to keep including in the code base There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By looking at PyQt4 document https://www.riverbankcomputing.com/static/Docs/PyQt4/python_v3.html, they seems support python 3, so I am going remove this comment. |
||
and this module does not work with PyGObject yet. | ||
""" | ||
__version__ = '1.5.27' | ||
|
||
import platform | ||
import os | ||
import subprocess | ||
from .clipboards import (init_osx_clipboard, | ||
init_gtk_clipboard, init_qt_clipboard, | ||
init_xclip_clipboard, init_xsel_clipboard, | ||
init_klipper_clipboard, init_no_clipboard) | ||
from .clipboards import ( | ||
init_osx_clipboard, init_qt_clipboard, init_xclip_clipboard, | ||
init_xsel_clipboard, init_klipper_clipboard, init_no_clipboard) | ||
from .windows import init_windows_clipboard | ||
|
||
# `import qtpy` sys.exit()s if DISPLAY is not in the environment. | ||
|
@@ -60,14 +59,6 @@ def determine_clipboard(): | |
return init_osx_clipboard() | ||
if HAS_DISPLAY: | ||
# Determine which command/module is installed, if any. | ||
try: | ||
# Check if gtk is installed | ||
import gtk # noqa | ||
except ImportError: | ||
pass | ||
else: | ||
return init_gtk_clipboard() | ||
|
||
try: | ||
# qtpy is a small abstraction layer that lets you write | ||
# applications using a single api call to either PyQt or PySide | ||
|
@@ -104,7 +95,6 @@ def set_clipboard(clipboard): | |
global copy, paste | ||
|
||
clipboard_types = {'osx': init_osx_clipboard, | ||
'gtk': init_gtk_clipboard, | ||
'qt': init_qt_clipboard, | ||
'xclip': init_xclip_clipboard, | ||
'xsel': init_xsel_clipboard, | ||
|
Uh oh!
There was an error while loading. Please reload this page.