Control your game with Launchpad. Compatible only with Windows and Linux.
This is an app that you can use to assign shortcuts to Launchpad. It's based on templates that you can edit.
The app is still very buggy and lacks a lot of features.
Ai is used as spellcheck (my English isn’t great) and to help me code (in line suggestions, code rewriting, etc.)
hameedah
Check their projects out: European Geopedia, hunt for fashion, my fantasy world, my portfolio , Factmals
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
I finished test mode!!! Now you can test your shortcuts without the launchpad. Now README, bugfixes and SHIP ;)
And last things for today done! Now button shortcuts work (finally!!!) and you can see button colour changes in GUI table. Now I need to add test mode for testing without launchpad, write good README and finally SHIP :).
So, after long and painful 3h I finally finished synchronisation between table and launchpad. Now buttons change colour based on Template data.
Templates buttons and layout is now displayed before clicking run button. It can be useful after I add drag and drop support in table to move items around and remove them.
Now data is loaded into Launchpad table object. I also added safeguards, like edge detection and drop on occupied cells detection.
Today, I have added template creation limitations. So now you can't create templates that are not connected to main widget. I have also removed diagonals for now.
I have added colour information for buttons (normal / pressed). I am preparing them for adding function.
Today I finished template editor. Now you can create and edit templates. I still need to add a delete button ;) and... make everything work with launchpad.
Today I added a working drop function. Now I only need to load data from template to table. I also changed the layout a bit.
Today I have change the drawing system to draw separate QPixmap for displayed preview and drag and drop preview. I have also added resize system and fixed a few things.
Today I changed templates save format from pickle to JSON (safer and human readable). I also started making template preview with drag support.
I scraped buttons idea in favour of QWidgets with preview QFrame with content to drag. On the image are my drawing and current state after changes.
So I added button generation for saved templates. And also added some fixes to the UI. I need to write devlogs more frequently.
I forgot to mention in the last update that I created a system for saving data from the UI to a .pkl file (with overwrite confirmation and more, thats why it's 2,5 h devlog). Icon creation was probably registered as around 15 minutes in Hackatime because I used Inkscape and edited a few colors in VS Code.
After few days (1-3, don't remember), I checked if saving was working, and on the version downloaded from GitHub, it wasn't. So 30 min of work and I fixed it. The folder used for saving was wrong (now it's %appdata%\Launkey\Launkey_Templates on windows).
I have created a icon for the app and added workflow to update version number before the release.
I have just finished functions to add, select, and delete buttons together with their data. Today, I have seen big progress towards the release. I have also added colour selector, and other widgets to edit data with.
Today I started making template editor back-end. It will be based on objects and their manipulation. Currently, the app only has a main Template class, which has name and type (so you can have sliders and other control elements, rather than just shortcuts to buttons). For now, I will only implement the BUTTONS type because it's simpler. Properties of the template can be now edited in the left side of the widow. Development has slowed down because school has started, and I have less time for programming.
And another 4h. After another rewrite, and some thinking the UI works. Now I can feel the progress because I finished (now really) the template creation UI (the right part...). Now all the back-end code and it will probably work... probably...
Another 4h, and more progress. It's starts filing that I can finish this project (or at least get to MVP state). Now adding buttons work only for the right and bottom directions. Implementing adding to the top and left is the most difficult task.
Wow 5h? That was a lot... But little progress... WHY?! Now I know more about Qt, but at what cost...
I have:
- rewritten the code, now other people can (probably) read it
- created a new custom classes for Buttons (so, less repetition in code)
- removed unused dependences
- and made some other small fixes (suggested by DeepSource)
So, last time I forget to post devlog, so I don't remember everything.
I finished a class for presets window, now it's displaying plus buttons and main object. It was hard to make something that worked.
Today, I was trying to rework the async parts of my code, but nothing was working so I just changed few imports...
Today, I focused on fixing code readability, because I started reading a book - Clean Code: A Handbook of Agile Software Craftsmanship. It's more about Java, but many of its principles are applicable to Python as well. I changed few functions and created two classes (LaunchpadWrapper and GUITable).
Also, I tested the build process (dev briefcase) on Linux. I had a problem, launchpad wasn't connecting to my app. It turned out that I need to install pygame using dnf not pip.
I’ve finished designing the UI for the template editor. I used Qt Creator for this, but since it doesn’t support the WakaTime plugin, some of the time I spent wasn’t tracked. Now I just need to create a custom layout for it.
I also changed the VS Code debugging command. Now it will track my hours properly. Previously, I was using ‘node-terminal’, and sometimes I forgot to click the stop debug button after closing my app, so some extra time (around 2–3 hours) was counted when I wasn’t actually programming. Now I switched to ‘debugpy’, which automatically stops debugging. It also has more features, like breakpoints and inline errors.
Finished making the main UI. It was difficult because I couldn't find a way to make a dynamic QtGridLayout for Presets. I was thinking that it was a feature in Qt Creator and I was wrong. It took a lot of tries, but now it's working.
Today is a BIG DAY! I created a demo for synchronisation between Launchpad and the GUI. It's working OK, so now I need to start making the real program with all the preset stuff.
UI Is ready. I made it in Qt Creator (I found one Wakatime plugin, but it was broken) so time was not counting. When I started debugging (to see how it's works) I was doing it in VSCode so some of it counted.
I started testing what GUI Python library to use; I installed Toga, but it doesn’t have drag-and-drop functions. So I replaced it with PySide6. I also installed and checked a library for controlling the keyboard. The image below is a sketch of GUI.