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
24
votes
2answers
2k views

To do tree application with undo/redo functionality

I am making a to-do tree application (Earlybird) in Python that will show checkable tasks/subtasks in a tree view. It includes higher-level groups of tasks grouped into blocks (e.g., Work block, Home ...
15
votes
2answers
3k views

Day planner / logger

This is a simple program I've made using Qt Creator and Pyside: I made a list of activities that I would like to enforce Then I made a program that randomly pick them based on chance It has some ...
12
votes
3answers
897 views

Speeding up spectrum analysis

I'm trying to speed up this code that loops over an entire spectrum range. It's using a Raspberry Pi, and a rtl-sdr dongle that covers up to around 1.7 GHz. My goal is to be sweep over that spectrum ...
12
votes
1answer
4k views

Multi-layer PyQt4 image viewer

I have written a functional GUI program using PyQt4, and I'm looking for some feedback because it's not as fast as I would like. It takes in some number of large, same-sized 2D arrays and displays a ...
11
votes
1answer
7k views

Python GUI by QtWebkit and Flask

I'm new to Python. For learning purposes, I want to create desktop application by using QtWebKit and Flask. You can find the source code here Main idea is: create a form including a QWebview widget ...
8
votes
4answers
915 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, ...
7
votes
1answer
130 views

Creating an object in Python with lots of long arguments [closed]

See the proposed changes in this Pull Request under def add_talk. ...
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 ...
7
votes
1answer
258 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....
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 ...
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 ...
6
votes
1answer
3k views

Adding data from QTreeVIew to QTreeView

I have a QTreeview that is filled with data from data_for_tree dictionary. Suppose that dictionary represents the most common ...
6
votes
1answer
471 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 ...
6
votes
1answer
96 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 ...
6
votes
1answer
88 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-...
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
332 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) ...
5
votes
1answer
489 views

Binding a value to a control

I'm currently writing some code in PyQt4 that takes a value and a control and binds the value to the control. Once the user saves the form it will unbind all the values and save it back to a custom ...
5
votes
1answer
722 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 ...
5
votes
1answer
3k views

Import and export of animation keys in Maya

I have programming this importing and exporting of animation keys. It is working, but I would like to gather any feedback/advice as I am still pretty much a noob in coding. ...
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
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 ...
4
votes
1answer
2k views

Implementing widgets within a main window

I am learning PySide and am trying to implement widgets within a main window. My goal right now is very simple: I want to place a QLabel, with independently defined ...
4
votes
1answer
497 views

Custom QT widget for QStackedWidget

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

Node Graph-based User Interface with python

I'd like to create a pyqt widget similar to the one Blender uses for representing its nodes After wasting some bounties without getting any answers on Stack Overflow, I thought maybe posting a little ...
4
votes
1answer
3k views

Modelview programming in PyQt4

In my first attempt, I have tried to load images from disk and load it to a QTableView using QAbstractTableModel. I'd like a ...
4
votes
1answer
11k views

Simple PyQt4 image slide show player

I have written a slideshow application and I am looking for some reviews: ...
4
votes
0answers
95 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
575 views

PyQt GUI to add and remove dots

Initially I got this code: ...
3
votes
2answers
103 views

Easing mod-making for a game

This program is meant to ease making mods for a game. A mod is made with XML. I used the lxml library to handle making the XML. I used PyQt for the GUI and this code is the functionality of the GUI. ...
3
votes
1answer
1k views

PyQt5 validator for decimal numbers

This class is similar to QDoubleValidator, but it improves slightly on the editing comfort. The comments mention "comma" but it's actually the decimal point of your locale (comma for me). ...
3
votes
1answer
74 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? ...
3
votes
1answer
36 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: ...
3
votes
1answer
127 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 ...
3
votes
1answer
2k views

Dynamically generated controls based on data from dictionary

I have attempted the GUI controls creation in a prompt based on data from dictionary. Is this the best way of implementing this? ...
3
votes
2answers
113 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 ...
3
votes
1answer
195 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
70 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
105 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
3answers
7k views

Simple PyQt5 counting GUI

I just began learning how to use signals and slots in PyQt5, and so I made a cute (pun intended) little program to display just one button. When the button is pressed a thread is spawned which will ...
2
votes
1answer
306 views

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

...
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 ...
2
votes
1answer
11k views

Simple QGraphicsScene program

At the documentation for QGraphicsScene, there is a simple example that does not work as written. I've written a fix that does work, and am curious if it could be ...
2
votes
2answers
48 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 ...
2
votes
1answer
166 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 ...
2
votes
1answer
60 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 ...
2
votes
1answer
84 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
1answer
56 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. ...
2
votes
1answer
2k views

Calculating sum of values in each child of dictionary for QTreeView

There is data stored in JSON file with the following structure: goods_data = {"year" : {"month" : {"day" : {"01" : {"name" : "some item", "price" : "10.01", "category" : "root | first | sub first | ...
2
votes
1answer
129 views

Uploading an input file to a web server

I have a long-running task that processes an input file and then uploads it to a web server. The processing part can be interrupted (with cleanup) but the upload shouldn't be interruptable so that we ...