Questions tagged [pyqt]

PyQt is a set of Python bindings for Digia's Qt application framework and runs on all platforms supported by Qt including Windows, MacOS/X and Linux.

19 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
8k views

Example of multithreading in Python3 / PyQt5 using QThread

I wanted to make a simple example of multithreading with QThread in PyQt5 / Python3. The script generates a set of QLineEdits and buttons to start and stop a set of ...
5
votes
0answers
4k views

Minimal SQLite table view in PyQt5

I have just started digging into PyQt5 in order to write a small GUI for editing a lexical database. Before I dig deeper into this, I would like to have feedback on the progress so far. Some ...
4
votes
0answers
173 views

PyQt load images in background process

I am building an application that needs to load 100-200 images (really only limited by performance) and display them to the user in a sort of gallery. A good analogy would simply be Google Images. In ...
4
votes
0answers
125 views

Simple employee GUI database sync/display/edit

This is a simple GUI to display employee data stored in the database, with editing options that sync with the database and adjust display according to mouse clicks/ keyboard scrolling/add/delete ... ...
4
votes
0answers
632 views

PyQt GUI to add and remove dots

Initially I got this code: ...
3
votes
0answers
40 views

PyQt5 developing complex Window GUI and making everything its own class

TLDR: Is my code following best practices for OOP and PyQt5 regarding inheritance, and is it okay to initialise classes within another class? What can I do to improve my methods, or what would be a ...
3
votes
0answers
72 views

Find product defects in a photograph

I have been trying to find defects (brown/copper parts) on this sample using PyQt, OpenCV and Python: And I can find defects, too. My problem is, I have nobody to ask, get feedback etc. I need some ...
3
votes
0answers
112 views

Program for memorizing irregular verbs (for Russian speakers)

I do not have any serious programming experience. The program is designed to memorize common irregular English verbs (for those who speak Russian like I do). The code is working. The necessary words ...
2
votes
0answers
77 views

Python 3 simple PyQt6 GUI program that helps text processing

I am not sure how to accurately describe what this program does in just a few words, anyway this program is very simple and easy to use, what it does is very simple and it is good at it. Let me start ...
2
votes
0answers
2k views

PyQt5 - Open new image window for each button click in menu

I wanted to write a code that each time I will press some button in my menu, a numpy image array will somehow be created, and this image will show up in a new window. So the following code is the ...
2
votes
0answers
1k views

PyQt frame which changes color with child focus

I am working on an application that has various "panels" contained within splitters. I wanted the panel border to change color when one of it's children gained focus. Here is a simple example of the ...
2
votes
0answers
2k views

PyQt GUI with setObjectName on all components to enable functional testing

Inspired by Test-Driven Development with Python by Harry Percival, I'm trying to implement functional testing of a PyQt GUI. I'm finding that, in order for tests to find the GUI components, I need the ...
2
votes
0answers
6k views

Example of PyQt5 Snake game

1) This a follow-up question to Example of PyQt5 simple turn-based game code 2) After improvement I edited original code to create snake clone game, which is real-time (or pseudo real-time) and it is ...
1
vote
0answers
50 views

Reorganize a large code into two separate codes in PyQt5

Situation I have a large GUI code consisting of a combobox. Whenever I select an option in the combobox, say X, in the very same main window, just next to ...
1
vote
0answers
1k views

Surveillance software using python and pyqt

This is started as a simple project, because I don't like software I'm using. Not that they are not good, but I wanted some custom stuff, so this little project started. This part of project is for ...
1
vote
0answers
183 views

PySide Label Subclass Widget

I am using PySide and the following widget sublassed from QLabel to display either the current day or time in my application: ...
1
vote
0answers
627 views

PyQt5 validator for decimal numbers (V2)

This class is similar to QDoubleValidator, but it improves slightly on the editing comfort. Are there any corner- or special cases of inputs I didn't consider, which would lead to bad behaviour? Is ...
1
vote
0answers
459 views

Implementing a login client

I have a lot of functions in this class to implement a login client. How do I modularize it ? ...
0
votes
1answer
105 views

Python best practices to impletent QThread, progressbar (pyqt5) and sniffer (scapy)

I'm new in python and I want to know the way to improve this code with best practices. I'm using PyQT5 to create new thread In that thread I'm using scapy to sniff traffic and filter ARP traffic to ...