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.
0
votes
1answer
62 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. ...
5
votes
0answers
76 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
110 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
121 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 ...
1
vote
1answer
228 views
Serial port data plotter in PyQt
I am rather new in GUI programming and multi-threading apps. It is just a serial port monitor which plot serial data via pyqtgraph. There are two curves on the ...
4
votes
0answers
65 views
4
votes
1answer
165 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 ...
2
votes
1answer
154 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 ...
1
vote
1answer
71 views
Mod maker (creates XML files to be used as mods)
This code add functionality to a GUI designed using PyQt. It cannot run alone, but I can provide the code. I am not asking for someone to provide criticism for every single function written here, but ...
3
votes
2answers
82 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. ...
10
votes
1answer
2k 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
...
2
votes
1answer
370 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 | ...
1
vote
0answers
80 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 ...
3
votes
1answer
91 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).
...
1
vote
1answer
126 views
Directory watcher and notifier for files added or removed
I have written a piece of code that notifies if something is added or removed from a folder location:
...
10
votes
3answers
430 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 ...
1
vote
0answers
206 views
Multiple classes running in separate QThreads
While coding a medium to large scale program for the first time I tried different ways of handling a lot of variables. As I find that examples on this are quite rare on the interwebs I will try to ...
6
votes
1answer
610 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 ...
17
votes
2answers
684 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
565 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
1answer
2k 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 ...
5
votes
1answer
1k 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.
...
2
votes
1answer
6k 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 ...
4
votes
1answer
304 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 ...
6
votes
1answer
113 views
Creating an object in Python with lots of long arguments
See the proposed changes in this Pull Request under def add_talk.
...
1
vote
0answers
271 views
Implementing a login client
I have a lot of functions in this class to implement a login client. How do I modularize it ?
...
2
votes
1answer
283 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?
...
1
vote
1answer
163 views
Widget configurer
I have a program written in PyQt that has a lot of content. The basic way I've been doing it is using a stacked widget with all the content on pages and buttons to navigate through the pages.
However,...
3
votes
1answer
2k 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
6k views
Simple PyQt4 image slide show player
I have written a slideshow application and I am looking for some reviews:
...
2
votes
1answer
93 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 ...
1
vote
1answer
1k views
Alternative to using sleep() to avoid a race condition in PyQt
I have a situation where I would like to use a single QThread to run two (or more) separate methods at different times. For example, I would like the ...
5
votes
1answer
410 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 ...