![]() |
Project - UK & EU Lottery killas / Open Source donation builders - Printable Version +- Linux Lite Forums (https://www.linuxliteos.com/forums) +-- Forum: Development (https://www.linuxliteos.com/forums/forumdisplay.php?fid=7) +--- Forum: Coding (https://www.linuxliteos.com/forums/forumdisplay.php?fid=33) +--- Thread: Project - UK & EU Lottery killas / Open Source donation builders (/showthread.php?tid=5259) |
Re: Project - UK & EU Lottery killas / Open Source donation builders - bitsnpcs - 05-19-2018 removed not on topic, not to be aiding the hijacking of my thread. Re: Project - UK & EU Lottery killas / Open Source donation builders - bitsnpcs - 05-19-2018 Hello Mart, I have done a new UK Lotto python script ![]() Its actions are like a combination of the initial idea, and the first posted version above. It is still 4 lines long, but is less typing, it doesn't need all the numbers to be typed out. I also added to the output text that it is the lotto numbers. I have also added more comment lines in the code to explain better what each part is doing. ![]() Screenshot of new UK Lotto number picker running in terminal on Linux Lite, and also showing code in Gedit. Here is the code, I saved it to a Leafpad document in Home folder and name it next.py Code: # imports random function To run this open your terminal by holding down Ctrl and Alt keys and pressing t (Ctrl+Alt+t) . Then copy/paste or type into terminal - Code: python next.py Side note - removed other linux topic not on topic in this thread. Re: Project - UK & EU Lottery killas / Open Source donation builders - bitsnpcs - 05-19-2018 Hello, using the second version of the UK Lotto above I have redone the EuroMillions Python script. ![]() EuroMillions new version with less typing, and improved comment lines, running on Linux Lite in Terminal and showing code in Gedit. I save this to a Leafpad document in Home folder and named this eunext.py Here is the code Code: # imports random function To run this open terminal by holding down Ctrl and Alt keys and pressing t (Ctrl+Alt+t) Then copy/paste or type Code: python eunext.py I hope you enjoyed reading this. Re: Project - UK & EU Lottery killas / Open Source donation builders - bitsnpcs - 05-21-2018 Removed socially friendly infos above here to comply with, not on topic Result at this stage is - 1/ producing the lotto numbers randomly as it is intended for. 2/ button click output is printing to terminal, not to my output box above button.Unsure what I am doing wrong in the code, I have tried pretty much every trial and error I can think of at this time, as just learning Python. I will have another try at getting the numbers to appear in the output box, at a future time. 3/ the Donate button does nothing yet, I am unsure of the code to add for it to open the browser, I doubt this will be difficult so I leave it for last after fixing output. Demo of UK Lotto killa v 1.0 - bitsnpcs - 05-28-2018 Demo of Fully functioning https://www.youtube.com/watch?v=NpLAq6XS_wA Re: Project - UK & EU Lottery killas / Open Source donation builders - Valtam - 05-29-2018 Well done [member=411]bitsnpcs[/member] ![]() Demo of UK Lotto killa v 1.0 - bitsnpcs - 05-29-2018 Thank You [member=2]Jerry[/member] ![]() UK Lotto v1.01 - Demo2 - bitsnpcs - 05-30-2018 Demo v1.01 https://www.youtube.com/watch?v=bcAzTAHqCWk UK Lotto final - Demo 3 - bitsnpcs - 05-31-2018 Demo of Final. https://www.youtube.com/watch?v=yLAAlE5FKoo Re: Project - UK & EU Lottery killas / Open Source donation builders - Scott(0) - 05-31-2018 [member=411]bitsnpcs[/member] That's very clever, great job! ![]() |