Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: A dynamically updating GUI screen from URL
Post: RE: A dynamically updating GUI screen from URL

(Apr-17-2019, 06:32 PM)Alfalfa Wrote: The error is caused by the indentation, simply remove "@QtCore.pyqtSlot()" which is useless there, and reduce the indentation of lines 14 and 15 so it is cohere...
bescf GUI 20 20,831 Apr-18-2019, 12:55 PM
    Thread: A dynamically updating GUI screen from URL
Post: RE: A dynamically updating GUI screen from URL

(Apr-16-2019, 02:55 PM)Alfalfa Wrote: Here you define data with "data = s.recv(1024)". When you move the code related to connection into it's own method, make sure you still define 'data' before try...
bescf GUI 20 20,831 Apr-17-2019, 01:16 PM
    Thread: A dynamically updating GUI screen from URL
Post: RE: A dynamically updating GUI screen from URL

#!/usr/bin/python3 import sys, time, socket from PyQt5 import QtWidgets, QtCore HOST = '192.168.1.58' PORT = 80 class WorkerThread(QtCore.QObject): signal = QtCore.pyqtSignal(int) ...
bescf GUI 20 20,831 Apr-16-2019, 01:23 PM
    Thread: A dynamically updating GUI screen from URL
Post: RE: A dynamically updating GUI screen from URL

(Apr-15-2019, 02:30 PM)Alfalfa Wrote: Something like this perhaps? #!/usr/bin/python3 import sys from PyQt5 import QtWidgets, QtCore class WorkerThread(QtCore.QObject): output = QtCore.pyqtSig...
bescf GUI 20 20,831 Apr-16-2019, 01:03 PM
    Thread: A dynamically updating GUI screen from URL
Post: RE: A dynamically updating GUI screen from URL

Thanks your super fast reply :) Can you click this link? Maybe i can take help from here
bescf GUI 20 20,831 Apr-15-2019, 02:36 PM
    Thread: A dynamically updating GUI screen from URL
Post: RE: A dynamically updating GUI screen from URL

(Apr-10-2019, 04:00 PM)Alfalfa Wrote: Hard to tell, but you can easily put them in the same class. Simply make one blocking method for the initial connection and call it before the while loop. If th...
bescf GUI 20 20,831 Apr-15-2019, 01:17 PM
    Thread: A dynamically updating GUI screen from URL
Post: RE: A dynamically updating GUI screen from URL

(Apr-08-2019, 10:09 PM)Alfalfa Wrote: It is a Qt or a PyQt bug, it looks like it does not know how to handle the byte object properly. To solve this simply call int() on your value before emitting t...
bescf GUI 20 20,831 Apr-10-2019, 12:22 PM
    Thread: A dynamically updating GUI screen from URL
Post: RE: A dynamically updating GUI screen from URL

(Apr-08-2019, 10:09 PM)Alfalfa Wrote: It is a Qt or a PyQt bug, it looks like it does not know how to handle the byte object properly. To solve this simply call int() on your value before emitting t...
bescf GUI 20 20,831 Apr-10-2019, 07:45 AM
    Thread: A dynamically updating GUI screen from URL
Post: RE: A dynamically updating GUI screen from URL

(Apr-05-2019, 01:34 PM)Alfalfa Wrote: You can, but it is usually a better practice to separate the logic from the gui, as it make the maintenance much easier as the code grows. If you want an exampl...
bescf GUI 20 20,831 Apr-08-2019, 09:14 AM
    Thread: A dynamically updating GUI screen from URL
Post: RE: A dynamically updating GUI screen from URL

(Apr-04-2019, 07:20 PM)Alfalfa Wrote: You should use another thread that make a request every second or so, and emit a signal to update the value of your GUI. #!/usr/bin/python3 # Threading example...
bescf GUI 20 20,831 Apr-08-2019, 07:26 AM
    Thread: A dynamically updating GUI screen from URL
Post: RE: A dynamically updating GUI screen from URL

(Apr-04-2019, 07:20 PM)Alfalfa Wrote: You should use another thread that make a request every second or so, and emit a signal to update the value of your GUI. #!/usr/bin/python3 # Threading example...
bescf GUI 20 20,831 Apr-05-2019, 08:52 AM
    Thread: A dynamically updating GUI screen from URL
Post: A dynamically updating GUI screen from URL

I work on about developing a Qt GUI using Qt5 and PyQt. I am trying to implement a display screen to Raspberry Pi that will dynamically "live update" the result to represent the rate at which the da...
bescf GUI 20 20,831 Apr-04-2019, 01:55 PM
    Thread: How to combine data taken from server between client and GUI?
Post: RE: How to combine data taken from server between ...

Thanks for your help, i found another solution :) Now, i can take data from IP and show it. But, this is not dynamic. I see constant value. When distance measurement on IP change, display widget shou...
bescf Networking 9 7,598 Apr-02-2019, 11:48 AM
    Thread: How to combine data taken from server between client and GUI?
Post: RE: How to combine data taken from server between ...

I added HOST and PORT definition, because when there isnt them, it gave an error. import socket HOST = '192.168.1.62' PORT = 80 class client: def __init__(self): self.HOST = '192.168.1.6...
bescf Networking 9 7,598 Apr-02-2019, 07:44 AM
    Thread: How to combine data taken from server between client and GUI?
Post: RE: How to combine data taken from server between ...

Quote:show what you've tried I attached a photo to previous reply. Don't view it ? I'm adding code now. import socket class client: def __init__(self): self.HOST = '192.168.1.55' # Th...
bescf Networking 9 7,598 Apr-01-2019, 03:12 PM
    Thread: How to combine data taken from server between client and GUI?
Post: RE: How to combine data taken from server between ...

Quote:as a class: Client.py import socket class Client: def __init__(self): self.HOST = '192.168.1.59' # The server's hostname or IP address, NodeMCU IP Address self.PORT = 80 ...
bescf Networking 9 7,598 Apr-01-2019, 01:59 PM
    Thread: How to combine data taken from server between client and GUI?
Post: RE: How to combine data taken from server between ...

(Apr-01-2019, 09:10 AM)Larz60+ Wrote: A better way would to have a main module that imports both GUI and Client and interfaces externally. Yes i want to create a main module that includes GUI and Cl...
bescf Networking 9 7,598 Apr-01-2019, 12:20 PM
    Thread: How to combine data taken from server between client and GUI?
Post: How to combine data taken from server between clie...

I'm reaching a server which takes distance data from ultrasonic sensor. (Server was created at another side with Arduino.) I have to show this data on Raspberry Pi, so I want to do GUI. I have two .py...
bescf Networking 9 7,598 Apr-01-2019, 06:34 AM
    Thread: A dynamically updating screen for PyQt GUI from URL
Post: A dynamically updating screen for PyQt GUI from UR...

I work on about developing a Qt GUI using Qt5 and PyQt. I am trying to implement a display screen to Raspberry Pi that will dynamically "live update" the result to represent the rate at which the data...
bescf GUI 0 2,638 Mar-25-2019, 06:58 AM
    Thread: About Error (Flask)
Post: About Error (Flask)

I wanted to apply Flask lib. Until yesterday, there was no error, it was done. But now i have an error. I dont understand. from flask import Flask app = Flask(__name__) @app.route("/") def hello(): ...
bescf Web Scraping & Web Development 1 2,663 Mar-20-2019, 09:27 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020