python


PyQt5 - “Cannot set X11 selection owner” error when using .setMimeData() on Ubuntu 16.04


Keep Getting this error when using PyQt5's clipboard.setMimeData()
QXcbClipboard::setMimeData: Cannot set X11 selection owner
def copy(index, app):
clipboard = app.clipboard()
Mode = clipboard.Clipboard
initialMimeData = clipboard.mimeData(mode = Mode)
import pyautogui
pyautogui.hotkey('ctrl', 'c')
mimeData = clipboard.mimeData(mode = Mode)
clipboards[index-1]["Data"] = mimeData
clipboard.setMimeData(initialMimeData, mode = Mode) #getting the error here
I'm running this on Ubuntu 16.04. Why do I get this issue and how do I fix it?

Related Links

Xcode gcc exit status 1
X-Sendfile and VERY big files on Apache2
How do I avoid having class data shared among instances?
Python: How much space does each element of a list take?
extract the number and name of python method arguments
Printing 5 numbers in a row
Django ValueError at /admin/
Running Tests From a Module
Django ease of building a RESTful interface
How do I run all Python unit tests in a directory?
Bypass django form validation on new form instance
Set language code inside a view in django
psycopg2 disconnects from server
Python def function: How do you specify the end of the function?
How do you implement a web-based direct deposit/eCheck payment system?
how to convert a timedelta object into a datetime object

Categories

HOME
arrays
ajax
batch-processing
symfony
plsql
semantic-ui
vhdl
oauth
xamarin.android
uibutton
parse-server
csvhelper
sbt-assembly
ios10
java-home
browserify
xcode8.3
pca
automata
riak
sql-tuning
python-unicode
ios10.3
aws-cognito
embedly
compare-and-swap
metadata-extractor
pptp
fetch-api
chrome-native-messaging
pitest
invoke-command
roundcube
division
pace
npm-publish
rhel.net
initializer
intellij-idea-2016
ical-dotnet
nashorn
finite-element-analysis
fastq
ideone
gd
cgcontext
greenhills
component-pascal
struts-layout
slidesjs
fontconfig
jcreator
iron.io
polar-coordinates
efxclipse
project-template
mongoose-populate
gitweb
multifile-uploader
database-backups
multilingual-app-toolkit
financial
galaxy
multinomial
document-oriented-db
code-readability
matcaffe
castle-windsor-3
pyopengl
type-mismatch
ubercart
crash-dumps
custom-url
rhel5
gmaps4rails
temp-tables
qtestlib
errorprovider
ghostdoc
facebook-wall
factors
edit-in-place
lov
chrome-for-android
pyjade
facebook-chat
java.util.date
client-library
fluidsynth
redirectstandardoutput
caliper
responsetext
flexicious
datacontract
authenticode
symbol-server
oggvorbis
outlook-form

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App