Some progress... Kivy is installed and running.

Published:

I wrote 2 small "hello world" scripts. One was to test the base Kivy install, the other was to test the KivyMD install. KivyMD is a Kivy extension that allows you to use assets from Google's material design project. Cleaner, more professional looking tools and widgets, fonts, transitions, etc. Meant originally to replace the "Kivy look" with more pleasing GUI elements that would be found developing native android or iOS applications.

Both ran and produced the expected output.

When creating the project folder, after moving in the files that I would be starting with (.py and .csv files), I used the following git commands to set up proper version control...

1. git init

This initializes the folder to be a git repository

2. git add .

This adds all of the files to the repository

3. git commit -m "Initial commit of project CHANCE"

When looking at the commit history with the "git log" command, that will be the starting point.

Now I can work on scripts safely, able to roll back to known working points if needed, and develop sections in branches... only committing changes to the master branch when they are ready.

I did manage to get this started before the new year!

Entry #571

Comments

Avatar hypersoniq -
#1
Clean up and preparation tasks are next. I had to modify the classifier script to run as a module, in this way I can call it with the proper parameters for each game, coded in each game's button OnClick() method. Wrote a small script to test out passing parameters and it works with all game types. That was as simple as wrapping the function call inside of a Main function, then it can be imported as a module. I already discovered the need to do this when wrapping the update scripts into one executable module, so it was no major hurdle. I still must do this with the follower script yet.

Then comes the start of areas I am not familiar with, namely 2 tasks
1. Creating the application framework
2. Restructuring the existing scripts to output to kivy widgets rather than the console.

This has been months of thinking, coding and testing leading up to the transition from simple scripts into a fully functional GUI framework.

Post a Comment

Please Log In

To use this feature you must be logged into your Lottery Post account.

Not a member yet?

If you don't yet have a Lottery Post account, it's simple and free to create one! Just tap the Register button and after a quick process you'll be part of our lottery community.

Register