2022 Developer Survey is open! Take survey.

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
0 answers
35 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 ...
user avatar
  • 41
1 vote
0 answers
41 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 ...
user avatar
2 votes
1 answer
53 views

PyQt6 program that helps you categorizing items

Interface: Console output: ...
user avatar
1 vote
0 answers
39 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 ...
user avatar
4 votes
0 answers
49 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 ...
user avatar
  • 141
0 votes
0 answers
19 views

Python selenium online Stanford-Binet Test solver

This is a Python program that solves a version of Stanford-Binet Test found at https://stanfordbinettest.com, basically it is a selenium bot that goes to the test url and submits what I have ...
user avatar
0 votes
0 answers
22 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 ...
user avatar
  • 1
2 votes
1 answer
97 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 ...
user avatar
2 votes
0 answers
164 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 ...
user avatar
0 votes
1 answer
166 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 ...
user avatar
1 vote
1 answer
55 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 ...
user avatar
  • 13
4 votes
1 answer
343 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 ...
user avatar
2 votes
1 answer
80 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 ...
user avatar
  • 3,443
4 votes
0 answers
318 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 ...
user avatar
  • 261
3 votes
0 answers
55 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 ...
user avatar
3 votes
1 answer
55 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 ...
user avatar
2 votes
2 answers
53 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 ...
user avatar
  • 73
3 votes
1 answer
123 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: ...
user avatar
6 votes
1 answer
195 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-...
user avatar
  • 73
2 votes
1 answer
205 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 ...
user avatar
3 votes
1 answer
95 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? ...
user avatar
  • 33
1 vote
1 answer
123 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 ...
user avatar
  • 137
1 vote
1 answer
438 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 ...
user avatar
  • 137
4 votes
2 answers
234 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 ...
user avatar
7 votes
1 answer
413 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....
user avatar
  • 9,779
5 votes
1 answer
831 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) ...
user avatar
4 votes
0 answers
137 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 ... ...
user avatar
4 votes
1 answer
277 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 ...
user avatar
  • 41
3 votes
0 answers
78 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 ...
user avatar
  • 31
2 votes
1 answer
75 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 ...
user avatar
3 votes
1 answer
216 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 ...
user avatar
2 votes
1 answer
242 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 ...
user avatar
2 votes
0 answers
615 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 ...
user avatar
  • 21
1 vote
1 answer
622 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. ...
user avatar
2 votes
1 answer
64 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. ...
user avatar
  • 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 ...
user avatar
  • 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 ...
user avatar
  • 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 ...
user avatar
  • 261
1 vote
0 answers
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 ...
user avatar
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 ...
user avatar
  • 201
6 votes
1 answer
521 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 ...
user avatar
3 votes
0 answers
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 ...
user avatar
6 votes
1 answer
112 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 ...
user avatar
7 votes
1 answer
102 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 ...
user avatar
  • 948
2 votes
1 answer
398 views

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

...
user avatar
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 ...
user avatar
  • 161
5 votes
1 answer
895 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 ...
user avatar
  • 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, ...
user avatar
1 vote
1 answer
730 views

Coin flip simulator with GUI

...
user avatar
4 votes
1 answer
540 views

Custom QT widget for QStackedWidget

I have a widget like below: ...
user avatar