View Single Post
Old 09-22-2023, 12:49 PM   #180
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,745
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by philja View Post
What do you make of that? Was it success or did the CCTest only think it was?
Unfortunately, it wasn't a success. At least we now know that the maintainer of the package didn't bundle it with PySide6.

Try changing the code in plugin.py as follows:

Spoiler:
Code:
#!/usr/bin/env python
 # -*- coding: utf-8 -*-
import sys
from PyQt5.QtWidgets import QApplication

def run(bk):
    app = QApplication(sys.argv)
    cb = app.clipboard()
    cb.clear(mode = cb.Clipboard )
    cb.setText("Lorem ipsum dolor sit amet, consectetur adipiscing elit", mode=cb.Clipboard)
    print('Done.')

    return 0

def main():
    print('I reached main when I should not have\n')
    return -1

if __name__ == "__main__":
    sys.exit(main())


If that doesn't work either, try the attached pyperclip-based test plugin.
Attached Files
File Type: zip PCTest.zip (22.5 KB, 653 views)
Doitsu is offline   Reply With Quote