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.

Filter by
Sorted by
Tagged with
0
votes
1answer
88 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 ...
1
vote
1answer
47 views

Proper way to pass an infromation/variable across QTabWidgets?

EDIT: Changed title, few mistakes in code were resolved (now working properly) The GUI I am trying to make will be a simple QTabWidget, leading a user straightforwardly towards the end tab by tab. For ...
4
votes
1answer
117 views

Python PyQt6 populate QTreeWidget with a list of named tuples

This is a Python 3.9 script that pulls data from a MySQL database and converts it to a list of named tuples and then passing it to PyQt6.QTreeWidget. It has to be a ...
2
votes
1answer
65 views

PyQt5 GUI for setting user configurations and calling main procedure

This module is the main GUI for a project I'm working on. It's not yet final, but I feel I've become somewhat blind to potential improvements / refactorings, but I'm sure there are plenty. The module ...
4
votes
0answers
127 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 ...
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
1answer
50 views

Storing the contents of text fields and inserting the stored values on button-click

I've created a little GUI where the text entered in the text-fields is stored in a property of the currently selected button. If a different button is clicked, the contents stored for that button are ...
2
votes
2answers
51 views

Properly setting up interactive elements such as QSpinBoxes or QComboBoxes, e.g. according to project specific data

Suppose you have a main window and open a dialog to do some kind of specific operation on your data. The dialog has interactive elements such as QSpinBoxes and QComboBoxes that determine properties of ...
3
votes
1answer
67 views

I want to add multiple inputs to this PyQt5 calculator

Recently I was learning to code using PyQt5 and Python. I was doing a school project on Calculator. Here is my graphic class: ...
6
votes
1answer
123 views

Putting millions of items in a QTreeView

I have a list of 2,888,991 channel objects. Each object has a name and a sample rate. I am trying to put them into a QTreeView. Each channel name is split on ':' '-' and '_'. If the name is H1:IOP-...
2
votes
1answer
180 views

Smart Tic Tac Toe, a reinforcement learning approach

I'm currently familiarizing myself with reinforcement learning (RL). For convenience, instead of manually entering coordinates in the terminal, I created a very simple UI for testing trained agents ...
3
votes
1answer
83 views

Automatically turn off PC with Python and PyQt5

I am a beginner in programming with Python. I am going to start my first job in this specialization. Can I use this code for presenting my skills at an interview? ...
1
vote
1answer
110 views

PyQt5 GroupBox Layouts Feedback

I will import given code for my main QMainWindow.(I only add import sys etc. to run it) Is there a more compact way to code this lines. Output is correct for my ...
1
vote
1answer
307 views

PyQt 5 CheckBox State Efficient wAy

Firstly, have a good day to all, I've been trying to learn PyQt5 nowadays. I wrote a code about check box state changing depends on other check box. It looks work. I wonder your feed back. Thank you ...
3
votes
2answers
187 views

Mastermind game

I've just finished one of my first projects with a GUI using PyQt5 and I recreated Mastermind, the board game. The game is played by inputting 4 numbers and getting a return of how many of the ...
7
votes
1answer
330 views

Pyqt Tic Tac Toe

Recently discovered PyQt5 and decided to make this as a 'hello world' for GUIs Would like input on the design, best practices, as well as idiomatic nature of the application and its structure. Game....
5
votes
1answer
642 views

labelpix, image annotation tool for object detection GUI python

For the full code, please go to https://github.com/emadboctorx/labelpix This is an object detection tool for drawing bounding boxes over images and save output to csv/hdf or yolo (You Only Look Once) ...
4
votes
0answers
122 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
1answer
239 views

Calculator with PyQT5

Recently I started to learn Python and PyQT5. So here is my code for a calculator. Personally I don't like how the doMath() function is looking but I don't know ...
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 ...
2
votes
1answer
66 views

Data structure for multiple x-y data with additional meta information in PyQt5 app

I'm trying to find a better approach than my current one to manage the storage of my PyQt application. I have a QTreeWidget where I can add and delete rows. Clicking on these QTreeWidgetItems shows ...
3
votes
1answer
172 views

Simple projects planner on PyQt5

My task was : Create a Python application to display the active status of your IT project. Everyone the project has its own unique number that is generated at the stage of receipt project into the ...
2
votes
1answer
170 views

GUI table widget filling with nested for loops

I'm doing a larger PyQt5 project which includes loading in large amount of data into a QTableWidget. However filling the table up with the loaded data is extremely slow due to nested for loops. I put ...
2
votes
0answers
445 views

Using Parent and Child in PyQt and Python [closed]

I've been searching the internet and cannot find a proper answer as when one should user "Parent" and "Child". I see these two used all over, I have not used them myself in my programs, and now I'm ...
1
vote
1answer
594 views

Simple PyQt5 Window

I have started learning PyQt5 and wanted to create a simple window to test my skills. So I have created this window and I want to receive reviews on any aspect of the code. ...
2
votes
1answer
58 views

Python script that alerts me when specific file gets created

I wrote a small script that opens a window using PyQt when a specific file gets created. This is to let me know when another program (that I have no control over) has finished calculating something. ...
1
vote
1answer
1k views

Capturing stdout in a QThread and update GUI

I would like to know opinions about the design I came up with to handle stdout capture to show progress in a PyQt5 application. So, I have this module which is ...
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 ...
1
vote
0answers
49 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 ...
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 ...
6
votes
1answer
503 views

PyFladesk Migration

I wanted to contribute to the PyFladesk project. The objective is to have a function that receives a Flask's app and embeds it in a Qt desktop app. I've already create a Pull Request on the main ...
3
votes
0answers
110 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 ...
6
votes
1answer
105 views

Logging Window system

(I originally asked this on Stack Overflow and was directed here) So I have 2 classes, one is a PyQT window widget, and the other class is a stack which holds a dictionary pointing to all of the ...
7
votes
1answer
86 views

Asynchronous recorder

A recorder to asynchronously record both scalar data and images and then synchronize them. The images should be cut with dynamics ROI. Here's my attempt on it. Please feel free to comment upon it and ...
2
votes
1answer
349 views

Dice roll simulator (updated) created using Python 3.5 and PyQt5

...
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
1answer
809 views

SQL Query generator, the GUI

This is the third round of reviews. The second round can be found in this question. This question focuses on the PyQt5 GUI for this app. This is a project I have been working on. This is one of my ...
8
votes
4answers
971 views

My Hangman game created using PyQt5 and Python 3.5

This is my Hangman game that I created using PyQt5 and Python 3.5 on my Windows 7 machine. What do you think? Is there anything you thing I could change/improve in terms of code or visually (font, ...
1
vote
1answer
656 views

Coin flip simulator with GUI

...
4
votes
1answer
511 views

Custom QT widget for QStackedWidget

I have a widget like below: ...
2
votes
1answer
1k views

Password Generator with GUI

I just finished my first GUI app, a Password Generator that can take any characters you want(I've added some default characters to make your life easier), and a password length up to 999, and some ...
4
votes
2answers
2k views

Timetable app for myself

My aim was to build a small, simple program that would show me my school timetable for the present day as well as the following day. I am new to PyQt(5) and programming in general. I started ...
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 ...
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
176 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
1answer
912 views

Tic Tac Toe in PyQt4

I'm working on learning Python, and this is my second GUI project using PyQt. I've played it a few times to test it and it seems to work. It isn't anything clever; the computer just picks randomly. ...
7
votes
1answer
1k views

First Memory Game with PyQt and OOP

So this is my very first time in this site. I have written this very basic Python code with PyQt5 to create a Memory Game. As I am not very familiar with OOP (but I'm trying to be!), I hope somebody ...
2
votes
0answers
5k 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 ...
7
votes
1answer
2k views

Example of PyQt5 simple turn-based game code

I've made my first turn-based game in PyQt5. I suppose that its idea can also be used by other novice GUI programmers. There is a 5 by 5 squared unpainted field and 4 players. Each player starts at ...