Completado

Need some help with PySide

I am trying to setup a socket client/server so that I can send command line arguments to an already running app instance using PySide. In the client example in the attached script, the client checks to see if the exe process [login to view URL] "pyinstaller compiled [login to view URL]" is already running and if not it opens the exe and sends the arguments.

Example usage:

python [login to view URL] --data randomtext

The server takes the entered argument "randomtext" and prints it out to self.label.

The code works with PyQt just fine but with PySide when calling self.server.server_close() during the close event it gives this error:

File "C:\python36\lib\[login to view URL]", line 41, in _fileobj_to_fd

raise ValueError("Invalid file descriptor: {}".format(fd))

ValueError: Invalid file descriptor: -1

I know it has to be something real simple to fix it but I just can't seem to figure it out. I think [login to view URL] in the Qthread is being garbage collected or not passing the value to run correctly or something.

I'd just like this code to work properly and stop the server when the app is exited or for you to create a similar simple app that works like my example and use the built in socket methods that PySide offers "QTcpSocket etc" instead of using socketserver.

Also, if you have a better idea of how to check if the app is already open or not when the client script is ran I'd appreciate seeing what you come up with for that too. It works perfectly fine though so no need to really worry about it.

I am using Python 3.6 and regular PySide, not PySide2.

Habilidades: Python, Arquitectura de software, Desarrollo de software, Windows Desktop

Ver más: install qtpy, import qtpy, pyside vs pyside2, maya 2017 pyside, qtpy tutorial, qtpy python, qtpy documentation, maya pyside, i need help in writing a think piece, need help work freelancer, work sales need help, need help university work, need help designing myspace web, zen cart need help, need help cloning website, need help mcafee secure vulnerabilities, need help design hair salon, need help finishing work, coldfusion website need help, need help fixing cre loaded

Información del empleador:
( 11 comentarios ) kennewick, United States

Nº del proyecto: #17110605

Adjudicado a:

codedancer3

Hi bro. I have read your description very carefully and i am so interested in your project. I am confident in your project and I can finish it clearly on time. I am well experienced and skillful Python programmer. Más

$20 USD en 1 día
(6 comentarios)
2.9

2 freelancers están ofertando el promedio de $23 para este trabajo

rahuljain777

Hi, I have 4+ years of experience as a python developer. My recent projects have been into cross platform GUI development using kivy (cross platform GUI framework for python). I just took a glimpse at your code, both t Más

$25 USD en 1 día
(3 comentarios)
3.0