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
1 vote
1 answer
17 views

Coordinate conversion program using pyqt

As an exercise in using PyQt, the Python switch statement and abstract classes, I made a little app to make conversions between geodetic (WGS84) and PSD93 (Oman) and UTM 40N projections (instead of ...
17 votes
4 answers
3k views

Python program to scramble MP3 audio

I'm super new to coding. I had a random idea in the car to make this application in order dive head first into learning to code. This is an app to take an MP3 file, "shred it" into pieces (...
1 vote
0 answers
51 views

Timer with input, sound and flashing ( Just timer :) )

I know that this program is not very outstanding, but I'm learning "Python" and decided to publish this code in order to get some advice and parting words and overall evaluation of the ...
  • 41
1 vote
0 answers
82 views

PyQt6 Wordle game... with some filtering according to the current state

Refer to Wikipedia English for more context on Wordle. This version behaves exactly like the standard Wordle game, except that it displays all possible choices in the current condition on the left ...
2 votes
1 answer
114 views

PyQt6 program that helps you categorizing items

Interface: Console output: ...
1 vote
0 answers
66 views

PyQt6 program that lets you adjust the HSV values of an RGB color

I don't know how to actually describe what this script does concisely. I am writing GUI programs using PyQt6, and I want the most beautiful palette for my programs, so I browsed Wikipedia for a bunch ...
4 votes
0 answers
140 views

PyQt: Open a file dialog from a separate thread

Based on a question I asked on SO, I have come up with the following solution. As I am very new to Python Qt, I would like a review rather than just add it as an answer in SO. The code runs a script ...
  • 141
0 votes
0 answers
30 views

QMediaPlaylist python

i'm trying to play a background music that is already in my python project folder, the music plays very well, but i'm working with classes and i don't know if the way i wrote to play the music inside ...
  • 1
2 votes
1 answer
111 views

Display routine for Minesweeper on PyQT5

I'm trying to recreate minesweeper in python with PyQT5. I have this function that updates the GUI by using nested for loops (one for column, and one for row) to check each cell in a 19x19 area to ...
2 votes
0 answers
253 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 ...
0 votes
1 answer
214 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
1 answer
90 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 ...
  • 13
4 votes
1 answer
555 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
1 answer
91 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 ...
  • 3,443
4 votes
0 answers
395 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 ...
  • 261
3 votes
0 answers
95 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
1 answer
56 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
2 answers
57 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 ...
  • 73
3 votes
1 answer
149 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
1 answer
289 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-...
  • 73
2 votes
1 answer
210 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
1 answer
99 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? ...
  • 33
1 vote
1 answer
135 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 ...
  • 137
1 vote
1 answer
512 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 ...
  • 137
4 votes
2 answers
255 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
1 answer
444 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....
  • 9,779
5 votes
1 answer
938 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
0 answers
158 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
1 answer
287 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 ...
  • 41
3 votes
0 answers
80 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 ...
  • 31
2 votes
1 answer
79 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
1 answer
237 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
1 answer
294 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
0 answers
708 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 ...
  • 21
1 vote
1 answer
645 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
1 answer
65 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. ...
  • 121
1 vote
1 answer
2k 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 ...
  • 230
2 votes
0 answers
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 ...
  • 407
2 votes
0 answers
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 ...
  • 261
1 vote
0 answers
55 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
0 answers
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 ...
  • 201
6 votes
1 answer
541 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
0 answers
114 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
1 answer
115 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
1 answer
106 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 ...
  • 958
2 votes
1 answer
411 views

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

...
6 votes
0 answers
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 ...
  • 161
5 votes
1 answer
932 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 ...
  • 2,889
8 votes
4 answers
1k 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
1 answer
772 views

Coin flip simulator with GUI

...