How to build your first Desktop Application in Python

dr bumrah
20 min readDec 12, 2020

Search the entire internet for uses of the Python programming language and they list them with Desktop Applications marked as not very suited with python. But years ago in 2016 when I was hoping to move on from web development to software development, Google.com told me I should choose python because it is used to build some modern and advanced scientific applications, then they mentioned blender3d. I knew blender3d, it is an awesome 3d creation software.

https://vimto.co.uk/vpx/video-Josha-v-pubv-liv1.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv2.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv3.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv4.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv5.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv6.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv7.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv8.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv9.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv10.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv1.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv2.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv3.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv4.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv5.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv6.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv7.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv8.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv9.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv10.html

A screenshot of blender3d (source: blender.org)

https://www.electronicsrecycling.org/wordpress/voc/video-j-v-hq01.html
https://www.electronicsrecycling.org/wordpress/voc/video-j-v-hq02.html
https://www.electronicsrecycling.org/wordpress/voc/video-j-v-hq03.html
https://www.electronicsrecycling.org/wordpress/voc/video-j-v-hq04.html
https://www.electronicsrecycling.org/wordpress/voc/video-j-v-hq05.html
https://omegasoft.bg/vmc/video-j-v-hq01.html
https://omegasoft.bg/vmc/video-j-v-hq02.html
https://omegasoft.bg/vmc/video-j-v-hq03.html
https://omegasoft.bg/vmc/video-j-v-hq04.html
https://omegasoft.bg/vmc/video-j-v-hq05.html
https://www.electronicsrecycling.org/wordpress/voc/Video-UCLA-v-USC-hq01.html
https://www.electronicsrecycling.org/wordpress/voc/Video-UCLA-v-USC-hq02.html
https://www.electronicsrecycling.org/wordpress/voc/Video-UCLA-v-USC-hq03.html
https://www.electronicsrecycling.org/wordpress/voc/Video-UCLA-v-USC-hq04.html
https://www.electronicsrecycling.org/wordpress/voc/Video-UCLA-v-USC-hq05.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Auburn-v-MS-State-hq01.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Auburn-v-MS-State-hq02.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Auburn-v-MS-State-hq03.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Auburn-v-MS-State-hq04.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Auburn-v-MS-State-hq05.html
https://vimto.co.uk/vpx/Video-Joshua-v-fight-hq01.html
https://vimto.co.uk/vpx/Video-Joshua-v-fight-hq02.html
https://vimto.co.uk/vpx/Video-Joshua-v-fight-hq03.html
https://vimto.co.uk/vpx/Video-Joshua-v-fight-hq04.html
https://vimto.co.uk/vpx/Video-Joshua-v-fight-hq05.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Joshua-v-fight-hq01.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Joshua-v-fight-hq02.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Joshua-v-fight-hq03.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Joshua-v-fight-hq04.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Joshua-v-fight-hq05.html
https://www.electronicsrecycling.org/wordpress/voc/videos-Washin-v-Californ-up.html
https://www.electronicsrecycling.org/wordpress/voc/videos-Washin-v-Californ-up1.html
https://www.electronicsrecycling.org/wordpress/voc/videos-Washin-v-Californ-up2.html
https://www.electronicsrecycling.org/wordpress/voc/videos-Washin-v-Californ-up3.html
https://www.electronicsrecycling.org/wordpress/voc/videos-Washin-v-Californ-up4.html
https://www.electronicsrecycling.org/wordpress/voc/videos-Washin-v-Californ-up5.html
https://www.electronicsrecycling.org/wordpress/voc/video-du-v-fl-Liv.html
https://www.electronicsrecycling.org/wordpress/voc/video-du-v-fl-Liv1.html
https://www.electronicsrecycling.org/wordpress/voc/video-du-v-fl-Liv2.html
https://www.electronicsrecycling.org/wordpress/voc/video-du-v-fl-Liv3.html
https://www.electronicsrecycling.org/wordpress/voc/video-du-v-fl-Liv4.html
https://www.electronicsrecycling.org/wordpress/voc/video-va-v-te-Liv.html
https://www.electronicsrecycling.org/wordpress/voc/video-va-v-te-Liv1.html
https://www.electronicsrecycling.org/wordpress/voc/video-va-v-te-Liv2.html
https://www.electronicsrecycling.org/wordpress/voc/video-va-v-te-Liv3.html
https://www.electronicsrecycling.org/wordpress/voc/video-va-v-te-Liv4.html
https://vimto.co.uk/vpx/Videos-Joshua-v-Pulev-bc01.html
https://vimto.co.uk/vpx/Videos-Joshua-v-Pulev-bc02.html
https://vimto.co.uk/vpx/Videos-Joshua-v-Pulev-bc03.html
https://vimto.co.uk/vpx/Videos-Joshua-v-Pulev-bc04.html
https://vimto.co.uk/vpx/Videos-Joshua-v-Pulev-bc05.html
https://www.electronicsrecycling.org/wordpress/voc/video-Virginia-v-Virginia-Tech-live-ncaaf-hd1.html
https://www.electronicsrecycling.org/wordpress/voc/video-Virginia-v-Virginia-Tech-live-ncaaf-hd2.html
https://www.electronicsrecycling.org/wordpress/voc/video-Virginia-v-Virginia-Tech-live-ncaaf-hd3.html
https://www.electronicsrecycling.org/wordpress/voc/video-Virginia-v-Virginia-Tech-live-ncaaf-hd4.html
https://www.electronicsrecycling.org/wordpress/voc/video-Virginia-v-Virginia-Tech-live-ncaaf-hd5.html
https://www.electronicsrecycling.org/wordpress/voc/video-Virginia-v-Virginia-Tech-live-ncaaf-hd6.html
https://cnpmyfoods.azed.gov/nos/video-Virginia-v-Virginia-Tech-live-ncaaf-hd1.html
https://cnpmyfoods.azed.gov/nos/video-Virginia-v-Virginia-Tech-live-ncaaf-hd2.html
https://cnpmyfoods.azed.gov/nos/video-Virginia-v-Virginia-Tech-live-ncaaf-hd3.html
https://cnpmyfoods.azed.gov/nos/video-Virginia-v-Virginia-Tech-live-ncaaf-hd4.html
https://cnpmyfoods.azed.gov/nos/video-Virginia-v-Virginia-Tech-live-ncaaf-hd5.html
https://cnpmyfoods.azed.gov/nos/video-Virginia-v-Virginia-Tech-live-ncaaf-hd6.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv1.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv2.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv3.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv4.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv5.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv6.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv7.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv8.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv9.html
https://vimto.co.uk/vpx/video-Josha-v-pubv-liv10.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv1.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv2.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv3.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv4.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv5.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv6.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv7.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv8.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv9.html
https://www.electronicsrecycling.org/wordpress/voc/video-Josha-v-pubv-liv10.html
https://cnpmyfoods.azed.gov/nos/Video-San-Diego-State-v-BYU-liv-ncaa.html
https://cnpmyfoods.azed.gov/nos/Video-San-Diego-State-v-BYU-liv-ncaa1.html
https://cnpmyfoods.azed.gov/nos/Video-San-Diego-State-v-BYU-liv-ncaa2.html
https://cnpmyfoods.azed.gov/nos/Video-San-Diego-State-v-BYU-liv-ncaa3.html
https://cnpmyfoods.azed.gov/nos/Video-San-Diego-State-v-BYU-liv-ncaa4.html
https://cnpmyfoods.azed.gov/nos/Video-San-Diego-State-v-BYU-liv-ncaa5.html
https://cnpmyfoods.azed.gov/nos/Video-Stanford-v-Oregon-State-liv-ncaa.html
https://cnpmyfoods.azed.gov/nos/Video-Stanford-v-Oregon-State-liv-ncaa1.html
https://cnpmyfoods.azed.gov/nos/Video-Stanford-v-Oregon-State-liv-ncaa2.html
https://cnpmyfoods.azed.gov/nos/Video-Stanford-v-Oregon-State-liv-ncaa3.html
https://cnpmyfoods.azed.gov/nos/Video-Stanford-v-Oregon-State-liv-ncaa4.html
https://cnpmyfoods.azed.gov/nos/Video-Stanford-v-Oregon-State-liv-ncaa5.html
https://cnpmyfoods.azed.gov/nos/Video-Virginia-v-Virginia-Tech-liv-ncaa.html
https://cnpmyfoods.azed.gov/nos/Video-Virginia-v-Virginia-Tech-liv-ncaa1.html
https://cnpmyfoods.azed.gov/nos/Video-Virginia-v-Virginia-Tech-liv-ncaa2.html
https://cnpmyfoods.azed.gov/nos/Video-Virginia-v-Virginia-Tech-liv-ncaa3.html
https://cnpmyfoods.azed.gov/nos/Video-Virginia-v-Virginia-Tech-liv-ncaa4.html
https://cnpmyfoods.azed.gov/nos/Video-Virginia-v-Virginia-Tech-liv-ncaa5.html
https://www.electronicsrecycling.org/wordpress/voc/Video-San-Diego-State-v-BYU-liv-ncaa.html
https://www.electronicsrecycling.org/wordpress/voc/Video-San-Diego-State-v-BYU-liv-ncaa1.html
https://www.electronicsrecycling.org/wordpress/voc/Video-San-Diego-State-v-BYU-liv-ncaa2.html
https://www.electronicsrecycling.org/wordpress/voc/Video-San-Diego-State-v-BYU-liv-ncaa3.html
https://www.electronicsrecycling.org/wordpress/voc/Video-San-Diego-State-v-BYU-liv-ncaa4.html
https://www.electronicsrecycling.org/wordpress/voc/Video-San-Diego-State-v-BYU-liv-ncaa5.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Stanford-v-Oregon-State-liv-ncaa.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Stanford-v-Oregon-State-liv-ncaa1.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Stanford-v-Oregon-State-liv-ncaa2.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Stanford-v-Oregon-State-liv-ncaa3.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Stanford-v-Oregon-State-liv-ncaa4.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Stanford-v-Oregon-State-liv-ncaa5.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Virginia-v-Virginia-Tech-liv-ncaa.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Virginia-v-Virginia-Tech-liv-ncaa1.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Virginia-v-Virginia-Tech-liv-ncaa2.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Virginia-v-Virginia-Tech-liv-ncaa3.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Virginia-v-Virginia-Tech-liv-ncaa4.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Virginia-v-Virginia-Tech-liv-ncaa5.html
https://cnpmyfoods.azed.gov/nos/video-Tn-v-Vd-Liv-dk07.html
https://cnpmyfoods.azed.gov/nos/video-Tn-v-Vd-Liv-dk06.html
https://cnpmyfoods.azed.gov/nos/video-Tn-v-Vd-Liv-dk05.html
https://cnpmyfoods.azed.gov/nos/video-Tn-v-Vd-Liv-dk04.html
https://cnpmyfoods.azed.gov/nos/video-Tn-v-Vd-Liv-dk03.html
https://cnpmyfoods.azed.gov/nos/video-Tn-v-Vd-Liv-dk02.html
https://cnpmyfoods.azed.gov/nos/video-Tn-v-Vd-Liv-dk01.html
https://cnpmyfoods.azed.gov/nos/video-Dk-v-Fs-Liv-dk07.html
https://cnpmyfoods.azed.gov/nos/video-Dk-v-Fs-Liv-dk06.html
https://cnpmyfoods.azed.gov/nos/video-Dk-v-Fs-Liv-dk05.html
https://cnpmyfoods.azed.gov/nos/video-Dk-v-Fs-Liv-dk04.html
https://cnpmyfoods.azed.gov/nos/video-Dk-v-Fs-Liv-dk03.html
https://cnpmyfoods.azed.gov/nos/video-Dk-v-Fs-Liv-dk02.html
https://cnpmyfoods.azed.gov/nos/video-Dk-v-Fs-Liv-dk01.html
https://cnpmyfoods.azed.gov/nos/video-Cl-v-Ws-Liv-bk08.html
https://cnpmyfoods.azed.gov/nos/video-Cl-v-Ws-Liv-bk07.html
https://cnpmyfoods.azed.gov/nos/video-Cl-v-Ws-Liv-bk06.html
https://cnpmyfoods.azed.gov/nos/video-Cl-v-Ws-Liv-bk05.html
https://cnpmyfoods.azed.gov/nos/video-Cl-v-Ws-Liv-bk04.html
https://cnpmyfoods.azed.gov/nos/video-Cl-v-Ws-Liv-bk03.html
https://cnpmyfoods.azed.gov/nos/video-Cl-v-Ws-Liv-bk02.html
https://cnpmyfoods.azed.gov/nos/video-Cl-v-Ws-Liv-bk01.html
https://www.electronicsrecycling.org/wordpress/voc/video-Tn-v-Vd-Liv-dk07.html
https://www.electronicsrecycling.org/wordpress/voc/video-Tn-v-Vd-Liv-dk06.html
https://www.electronicsrecycling.org/wordpress/voc/video-Tn-v-Vd-Liv-dk05.html
https://www.electronicsrecycling.org/wordpress/voc/video-Tn-v-Vd-Liv-dk04.html
https://www.electronicsrecycling.org/wordpress/voc/video-Tn-v-Vd-Liv-dk03.html
https://www.electronicsrecycling.org/wordpress/voc/video-Tn-v-Vd-Liv-dk02.html
https://www.electronicsrecycling.org/wordpress/voc/video-Tn-v-Vd-Liv-dk01.html
https://www.electronicsrecycling.org/wordpress/voc/video-Dk-v-Fs-Liv-dk07.html
https://www.electronicsrecycling.org/wordpress/voc/video-Dk-v-Fs-Liv-dk06.html
https://www.electronicsrecycling.org/wordpress/voc/video-Dk-v-Fs-Liv-dk05.html
https://www.electronicsrecycling.org/wordpress/voc/video-Dk-v-Fs-Liv-dk04.html
https://www.electronicsrecycling.org/wordpress/voc/video-Dk-v-Fs-Liv-dk03.html
https://www.electronicsrecycling.org/wordpress/voc/video-Dk-v-Fs-Liv-dk02.html
https://www.electronicsrecycling.org/wordpress/voc/video-Dk-v-Fs-Liv-dk01.html
https://www.electronicsrecycling.org/wordpress/voc/video-Cl-v-Ws-Liv-bk08.html
https://www.electronicsrecycling.org/wordpress/voc/video-Cl-v-Ws-Liv-bk07.html
https://www.electronicsrecycling.org/wordpress/voc/video-Cl-v-Ws-Liv-bk06.html
https://www.electronicsrecycling.org/wordpress/voc/video-Cl-v-Ws-Liv-bk05.html
https://www.electronicsrecycling.org/wordpress/voc/video-Cl-v-Ws-Liv-bk04.html
https://www.electronicsrecycling.org/wordpress/voc/video-Cl-v-Ws-Liv-bk03.html
https://www.electronicsrecycling.org/wordpress/voc/video-Cl-v-Ws-Liv-bk02.html
https://www.electronicsrecycling.org/wordpress/voc/video-Cl-v-Ws-Liv-bk01.html
https://cnpmyfoods.azed.gov/nos/Video-App-State-v-GA-Southern-Liv-ncaaf1.html
https://cnpmyfoods.azed.gov/nos/Video-App-State-v-GA-Southern-Liv-ncaaf2.html
https://cnpmyfoods.azed.gov/nos/Video-App-State-v-GA-Southern-Liv-ncaaf3.html
https://cnpmyfoods.azed.gov/nos/Video-App-State-v-GA-Southern-Liv-ncaaf4.html
https://cnpmyfoods.azed.gov/nos/Video-App-State-v-GA-Southern-Liv-ncaaf5.html
https://cnpmyfoods.azed.gov/nos/Video-Boise-State-v-Wyoming-Liv-ncaaf1.html
https://cnpmyfoods.azed.gov/nos/Video-Boise-State-v-Wyoming-Liv-ncaaf2.html
https://cnpmyfoods.azed.gov/nos/Video-Boise-State-v-Wyoming-Liv-ncaaf3.html
https://cnpmyfoods.azed.gov/nos/Video-Boise-State-v-Wyoming-Liv-ncaaf4.html
https://cnpmyfoods.azed.gov/nos/Video-Boise-State-v-Wyoming-Liv-ncaaf5.html
https://cnpmyfoods.azed.gov/nos/video-Joshua-v-Kubrat-Pulev-box-Liv-de1.html
https://cnpmyfoods.azed.gov/nos/video-Joshua-v-Kubrat-Pulev-box-Liv-de2.html
https://cnpmyfoods.azed.gov/nos/video-Joshua-v-Kubrat-Pulev-box-Liv-de3.html
https://cnpmyfoods.azed.gov/nos/video-Joshua-v-Kubrat-Pulev-box-Liv-de4.html
https://cnpmyfoods.azed.gov/nos/video-Joshua-v-Kubrat-Pulev-box-Liv-de5.html
https://www.davenport-burgess.com/zox/Video-App-State-v-GA-Southern-Liv-ncaaf1.html
https://www.davenport-burgess.com/zox/Video-App-State-v-GA-Southern-Liv-ncaaf2.html
https://www.davenport-burgess.com/zox/Video-App-State-v-GA-Southern-Liv-ncaaf3.html
https://www.davenport-burgess.com/zox/Video-App-State-v-GA-Southern-Liv-ncaaf4.html
https://www.davenport-burgess.com/zox/Video-App-State-v-GA-Southern-Liv-ncaaf5.html
https://www.davenport-burgess.com/zox/Video-Boise-State-v-Wyoming-Liv-ncaaf1.html
https://www.davenport-burgess.com/zox/Video-Boise-State-v-Wyoming-Liv-ncaaf2.html
https://www.davenport-burgess.com/zox/Video-Boise-State-v-Wyoming-Liv-ncaaf3.html
https://www.davenport-burgess.com/zox/Video-Boise-State-v-Wyoming-Liv-ncaaf4.html
https://www.davenport-burgess.com/zox/Video-Boise-State-v-Wyoming-Liv-ncaaf5.html
https://www.davenport-burgess.com/zox/video-Joshua-v-Kubrat-Pulev-box-Liv-de1.html
https://www.davenport-burgess.com/zox/video-Joshua-v-Kubrat-Pulev-box-Liv-de2.html
https://www.davenport-burgess.com/zox/video-Joshua-v-Kubrat-Pulev-box-Liv-de3.html
https://www.davenport-burgess.com/zox/video-Joshua-v-Kubrat-Pulev-box-Liv-de4.html
https://www.davenport-burgess.com/zox/video-Joshua-v-Kubrat-Pulev-box-Liv-de5.html
https://www.electronicsrecycling.org/wordpress/voc/Video-App-State-v-GA-Southern-Liv-ncaaf1.html
https://www.electronicsrecycling.org/wordpress/voc/Video-App-State-v-GA-Southern-Liv-ncaaf2.html
https://www.electronicsrecycling.org/wordpress/voc/Video-App-State-v-GA-Southern-Liv-ncaaf3.html
https://www.electronicsrecycling.org/wordpress/voc/Video-App-State-v-GA-Southern-Liv-ncaaf4.html
https://www.electronicsrecycling.org/wordpress/voc/Video-App-State-v-GA-Southern-Liv-ncaaf5.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Boise-State-v-Wyoming-Liv-ncaaf1.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Boise-State-v-Wyoming-Liv-ncaaf2.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Boise-State-v-Wyoming-Liv-ncaaf3.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Boise-State-v-Wyoming-Liv-ncaaf4.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Boise-State-v-Wyoming-Liv-ncaaf5.html
https://www.electronicsrecycling.org/wordpress/voc/video-Joshua-v-Kubrat-Pulev-box-Liv-de1.html
https://www.electronicsrecycling.org/wordpress/voc/video-Joshua-v-Kubrat-Pulev-box-Liv-de2.html
https://www.electronicsrecycling.org/wordpress/voc/video-Joshua-v-Kubrat-Pulev-box-Liv-de3.html
https://www.electronicsrecycling.org/wordpress/voc/video-Joshua-v-Kubrat-Pulev-box-Liv-de4.html
https://www.electronicsrecycling.org/wordpress/voc/video-Joshua-v-Kubrat-Pulev-box-Liv-de5.html
https://www.electronicsrecycling.org/wordpress/voc/Videos-LAT-v-TCU-liv-hd1.html
https://www.electronicsrecycling.org/wordpress/voc/Videos-LAT-v-TCU-liv-hd2.html
https://www.electronicsrecycling.org/wordpress/voc/Videos-LAT-v-TCU-liv-hd3.html
https://www.electronicsrecycling.org/wordpress/voc/Videos-LAT-v-TCU-liv-hd4.html
https://www.electronicsrecycling.org/wordpress/voc/Videos-LAT-v-TCU-liv-hd5.html
https://www.electronicsrecycling.org/wordpress/voc/Videos-LSU-v-Florida-football-liv1.html
https://www.electronicsrecycling.org/wordpress/voc/Videos-LSU-v-Florida-football-liv2.html
https://www.electronicsrecycling.org/wordpress/voc/Videos-LSU-v-Florida-football-liv3.html
https://www.electronicsrecycling.org/wordpress/voc/Videos-LSU-v-Florida-football-liv4.html
https://www.electronicsrecycling.org/wordpress/voc/Videos-LSU-v-Florida-football-liv5.html
https://www.electronicsrecycling.org/wordpress/voc/video-UCLA-v-USC-live01.html
https://www.electronicsrecycling.org/wordpress/voc/video-UCLA-v-USC-live02.html
https://www.electronicsrecycling.org/wordpress/voc/video-UCLA-v-USC-live03.html
https://www.electronicsrecycling.org/wordpress/voc/video-UCLA-v-USC-live04.html
https://www.electronicsrecycling.org/wordpress/voc/video-UCLA-v-USC-live05.html
https://www.electronicsrecycling.org/wordpress/voc/V-ideos-Shakur-Stevenson-v-Toka-Kahn-Clary-Liv-a.html
https://www.electronicsrecycling.org/wordpress/voc/V-ideos-Shakur-Stevenson-v-Toka-Kahn-Clary-Liv-b.html
https://www.electronicsrecycling.org/wordpress/voc/V-ideos-Shakur-Stevenson-v-Toka-Kahn-Clary-Liv-c.html
https://www.electronicsrecycling.org/wordpress/voc/V-ideos-Shakur-Stevenson-v-Toka-Kahn-Clary-Liv-d.html
https://www.electronicsrecycling.org/wordpress/voc/V-ideos-Shakur-Stevenson-v-Toka-Kahn-Clary-Liv-e.html
https://www.electronicsrecycling.org/wordpress/voc/V-ideos-Shakur-Stevenson-v-Toka-Kahn-Clary-Liv-f.html
https://www.electronicsrecycling.org/wordpress/voc/V-ideos-Shakur-Stevenson-v-Toka-Kahn-Clary-Liv-g.html
https://www.electronicsrecycling.org/wordpress/voc/V-ideos-Shakur-Stevenson-v-Toka-Kahn-Clary-Liv-h.html
https://cnpmyfoods.azed.gov/nos/video-UCLA-v-USC-live01.html
https://cnpmyfoods.azed.gov/nos/video-UCLA-v-USC-live02.html
https://cnpmyfoods.azed.gov/nos/video-UCLA-v-USC-live03.html
https://cnpmyfoods.azed.gov/nos/video-UCLA-v-USC-live04.html
https://cnpmyfoods.azed.gov/nos/video-UCLA-v-USC-live05.html
https://cnpmyfoods.azed.gov/nos/Video-Appalachian-State-v-Georgia-Southern-Live-ja.html
https://cnpmyfoods.azed.gov/nos/Video-Appalachian-State-v-Georgia-Southern-Live-ja01.html
https://cnpmyfoods.azed.gov/nos/Video-Appalachian-State-v-Georgia-Southern-Live-ja02.html
https://cnpmyfoods.azed.gov/nos/Video-Appalachian-State-v-Georgia-Southern-Live-ja03.html
https://cnpmyfoods.azed.gov/nos/Video-Appalachian-State-v-Georgia-Southern-Live-ja04.html
https://cnpmyfoods.azed.gov/nos/Video-Boise-State-v-Wyoming-Live-ja.html
https://cnpmyfoods.azed.gov/nos/Video-Boise-State-v-Wyoming-Live-ja01.html
https://cnpmyfoods.azed.gov/nos/Video-Boise-State-v-Wyoming-Live-ja02.html
https://cnpmyfoods.azed.gov/nos/Video-Boise-State-v-Wyoming-Live-ja03.html
https://cnpmyfoods.azed.gov/nos/Video-Boise-State-v-Wyoming-Live-ja04.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Appalachian-State-v-Georgia-Southern-Live-ja.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Appalachian-State-v-Georgia-Southern-Live-ja01.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Appalachian-State-v-Georgia-Southern-Live-ja02.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Appalachian-State-v-Georgia-Southern-Live-ja03.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Appalachian-State-v-Georgia-Southern-Live-ja04.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Boise-State-v-Wyoming-Live-ja.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Boise-State-v-Wyoming-Live-ja01.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Boise-State-v-Wyoming-Live-ja02.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Boise-State-v-Wyoming-Live-ja03.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Boise-State-v-Wyoming-Live-ja04.html
https://cnpmyfoods.azed.gov/nos/video-Js-v-Pv-Liv-ek07.html
https://cnpmyfoods.azed.gov/nos/video-Js-v-Pv-Liv-ek06.html
https://cnpmyfoods.azed.gov/nos/video-Js-v-Pv-Liv-ek05.html
https://cnpmyfoods.azed.gov/nos/video-Js-v-Pv-Liv-ek04.html
https://cnpmyfoods.azed.gov/nos/video-Js-v-Pv-Liv-ek03.html
https://cnpmyfoods.azed.gov/nos/video-Js-v-Pv-Liv-ek02.html
https://cnpmyfoods.azed.gov/nos/video-Js-v-Pv-Liv-ek01.html
https://www.electronicsrecycling.org/wordpress/voc/video-Js-v-Pv-Liv-ek07.html
https://www.electronicsrecycling.org/wordpress/voc/video-Js-v-Pv-Liv-ek06.html
https://www.electronicsrecycling.org/wordpress/voc/video-Js-v-Pv-Liv-ek05.html
https://www.electronicsrecycling.org/wordpress/voc/video-Js-v-Pv-Liv-ek04.html
https://www.electronicsrecycling.org/wordpress/voc/video-Js-v-Pv-Liv-ek03.html
https://www.electronicsrecycling.org/wordpress/voc/video-Js-v-Pv-Liv-ek02.html
https://www.electronicsrecycling.org/wordpress/voc/video-Js-v-Pv-Liv-ek01.html
https://vimto.co.uk/vpx/video-Js-v-Pv-Liv-ek07.html
https://vimto.co.uk/vpx/video-Js-v-Pv-Liv-ek06.html
https://vimto.co.uk/vpx/video-Js-v-Pv-Liv-ek05.html
https://vimto.co.uk/vpx/video-Js-v-Pv-Liv-ek04.html
https://vimto.co.uk/vpx/video-Js-v-Pv-Liv-ek03.html
https://vimto.co.uk/vpx/video-Js-v-Pv-Liv-ek02.html
https://vimto.co.uk/vpx/video-Js-v-Pv-Liv-ek01.html
https://cnpmyfoods.azed.gov/nos/video-San-Diego-State-v-BYU-live-ncaaf-hd1.html
https://cnpmyfoods.azed.gov/nos/video-San-Diego-State-v-BYU-live-ncaaf-hd2.html
https://cnpmyfoods.azed.gov/nos/video-San-Diego-State-v-BYU-live-ncaaf-hd3.html
https://cnpmyfoods.azed.gov/nos/video-San-Diego-State-v-BYU-live-ncaaf-hd4.html
https://cnpmyfoods.azed.gov/nos/video-San-Diego-State-v-BYU-live-ncaaf-hd5.html
https://vimto.co.uk/vpx/Videos-Jos-v-Puv-liv-on-1.html
https://vimto.co.uk/vpx/Videos-Jos-v-Puv-liv-on-2.html
https://vimto.co.uk/vpx/Videos-Jos-v-Puv-liv-on-3.html
https://vimto.co.uk/vpx/Videos-Jos-v-Puv-liv-on-4.html
https://vimto.co.uk/vpx/Videos-Jos-v-Puv-liv-on-5.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Auburn-v-Mississippi-State-NCA01.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Auburn-v-Mississippi-State-NCA02.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Auburn-v-Mississippi-State-NCA03.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Auburn-v-Mississippi-State-NCA04.html
https://www.electronicsrecycling.org/wordpress/voc/Video-Auburn-v-Mississippi-State-NCA05.html
https://vimto.co.uk/vpx/pPv-Videos-Joshua-v-Pulev-liv-hq1.html
https://vimto.co.uk/vpx/pPv-Videos-Joshua-v-Pulev-liv-hq2.html
https://vimto.co.uk/vpx/pPv-Videos-Joshua-v-Pulev-liv-hq3.html
https://vimto.co.uk/vpx/pPv-Videos-Joshua-v-Pulev-liv-hq4.html
https://vimto.co.uk/vpx/pPv-Videos-Joshua-v-Pulev-liv-hq5.html

But its not their fault, the ugly things people are using as showcases for python guis are detestable, too old, and too expired looking windows, no young person would like that. I hope to change that notion with this simple desktop app tutorial. Lets get going.

We will be using PyQt (more on that soon) instead of Tkinter which was almost removed from the list of python standard libraries for being outdated.

What is PyQt (pronounced: pie-cute). It is a port of a framework, Qt (pronounced: cute) from C++, . That framework is known as the necessary framework for C++ developers. It is the framework behind blender3d, Tableau, Telegram, Anaconda Navigator, Ipython, Jupyter Notebook, VirtualBox, VLC etc. We will use it instead of the embarrassing Tkinter.

Prerequisites

  1. You should already know some python basics
  2. You should know how to install packages or libraries with pip
  3. You should already have python installed, of course.

Installation

The only thing we will need to install is PyQt. So open up your terminal, on windows it will be the Command Prompt or Powershell.

Type the following command in your terminal

>>> pip install PyQt5

PyQt5 because we are downloading the version 5 of PyQt, version 5.15 to be specific. Wait for the installation to complete it will only take like a minute or two.

Project Files and Folders

Now that we are done with the installation. We should start with our project. Create a project folder for the app, we going to call it: helloApp. Create it anywhere you want on your computer, but its good to be organised.

Lets do a “Hello World”

Open up the main.py, preferably in vscode and enter the following code

main.py

import sysfrom PyQt5.QtGui import QGuiApplication
from PyQt5.QtQml import QQmlApplicationEngineapp = QGuiApplication(sys.argv)engine = QQmlApplicationEngine()
engine.quit.connect(app.quit)
engine.load('./UI/main.qml')sys.exit(app.exec())

The above code calls QGuiApplication and QQmlApplicationEngine Which will use Qml instead of QtWidgets as the UI layer for the Qt Application. It then connects the UI layers quit function with the app’s main quit function. So both can close when the UI has been closed by the user. Next it loads the qml file as the qml code for the Qml UI. The app.exec() is what runs the Application, it is inside the sys.exit because it returns the exit code of the Application which gets passed into the sys.exit which exits the python sytem.

Add this code to the main.qml

main.qml

import QtQuick 2.15
import QtQuick.Controls 2.15ApplicationWindow {
visible: true
width: 600
height: 500
title: "HelloApp" Text {
anchors.centerIn: parent
text: "Hello World"
font.pixelSize: 24
}}

The above code creates a Window, the visible code is very important, without that the UI is going to run but will be invisible,with width and height as specified, with a title of “HelloApp”. And a Text that is centered in the parent(which happens to be the window), the text displayed is “Hello World”, a pixel size of 24px.

If you have the above, you can run it and see your result.

Navigate into your helloApp folder

>>> cd helloApp

Now run it by doing:

>>> python main.py

If your code runs, you should see:

`An app window showing the text “Hello World”

Update UI

Now lets update a UI a little bit, lets add an image as a background and a text that will have a time

import QtQuick 2.15
import QtQuick.Controls 2.15ApplicationWindow {
visible: true
width: 400
height: 600
title: "HelloApp" Rectangle {
anchors.fill: parent Image {
sourceSize.width: parent.width
sourceSize.height: parent.height
source: "./images/playas.jpg"
fillMode: Image.PreserveAspectCrop } Rectangle {
anchors.fill: parent
color: "transparent" Text {
text: "16:38:33"
font.pixelSize: 24
color: "white"
} } }
}

The above has an ApplicationWindow type, a Rectangle type inside it, that is actually filling up all the space of the window. There is an Image inside of it, and a another Rectangle that looks like its beside it, but because of the non-existence of a Layout type, its actually on top of the Image type. The Rectangle has a color of transparent since by default Rectangles are white, there is a Text inside of it that reads 16:38:33, to mock up time.

If you run the app the text will appear at the top-left corner of the Window. We do not like that, and so we are going to make it appear at the bottom-left corner with some margins instead.

In your qml code, update the Text type to include anchors as shown below:

...            Text {
anchors {
bottom: parent.bottom
bottomMargin: 12
left: parent.left
leftMargin: 12 }
text: "16:38:33"
font.pixelSize: 24
...
} ...

Now run it by doing

>>> python main.py

You should see something similar to this.

Now I would like the time to update

Use real time

Lets use a real time. Python provides us with native functions that give us all kinds of time and date related functions. We want a string with the current time. gmtime provides you with global time struct with all kinds of information and strftime constructs certains portions of the time as a string using the gmtime function

import the strftime, and gmtime functions

main.py

import sys
from time import strftime, gmtime...

Then construct your time string anywhere in the file

main.py

curr_time = strftime("%H:%M:%S", gmtime())

The %H, %M, %S, tells strftime, that we want to see Hours(24-hour type), minutes, and seconds. (Read more about format codes for strftime here). This variable will be passed on to the qml layer.

Lets create a property in qml that we can use to receive time string. This variable makes it easier to change the time. Lets call this property currTime

main.qml

...ApplicationWindow {
...
title: "HelloApp" property string currTime: "00:00:00"
...

Use this property in the qml, so when this value changes all the other places where it has been used also will change.

main.qml

...Text {
...
text: currTime // used to be; text: "16:38:33"
font.pixelSize: 48
color: "white"
}...

Now send our curr_time variable we created in python to qml by setting it to the currTime qml property.

main.py

...engine.load('./UI/main.qml')
engine.rootObjects()[0].setProperty('currTime', curr_time)...

The above code will set the qml property currTime to the value of the curr_time python property. This is one way we pass information from python to the UI layer.

Run the app and you should see no errors and will also have the current time. Hooray!!! Onward!!!

Update the time

To keep our time updated. We will need to use threads. Threading in python is easy and straightforward, we will use that instead of Qt’s threading. Thread uses functions or thread calls a function. I prefer we use a technique in Qt known as signals, this is a professional method, and studying it know will make your like better and easier. Lets put our current time code into a function, use underscore(_) for the file name. I will explain why later. It is not a requirement or anything, it is just good practice

To use signals we would have to subclass QObject, straightforward.

Create a subclass of QObject, call it whatever you like. I will call it Backend.

main.py

...
from from PyQt5.QtCore import QObject, pyqtSignal
class Backend(QObject): def __init__(self):
QObject.__init__(self)
...

The above code imports QObject and pyqtSignal, in pyside this is called Signal. It is one of the few differences between pyqt and pyside.

Formally, we had a property string that received our curr_time string from python, now we create a property QtObject to receive the Backend object from python. There are not that many types. Qml converts python base types into bool, int, double, string, list, QtObject and var. var can handle every python type, but its the least loved.

main.qml

...
property string currTime: "00:00:00"
property QtObject backend
...

The above code creates a QtObject backend to hold our python object back_end. The names used are mine, feel free to change them to whatever you like

In the python pass it on

main.py

...
engine.load('./UI/main.qml')
back_end = Backend()
engine.rootObjects()[0].setProperty('backend', back_end)
...

In the above code an object back_end was created from the class Backend. We then set it to the qml property named backend

In Qml, one QtObject can receive numerous functions (called signals) from python that does numerous things, but they would have to be organised under that QtObject.

Create Connections type and target it to backend. Now inside the Connections type can be functions as numerous as we want to receive for the backend.

main.qml

...
Rectangle {
anchors.fill: parent Image {
...
}
...}Connections {
target: backend
}
...

Now thats’ how we connect with the python signals.

If we do not use threading our UI will freeze. Its quite emphatic to state that what we need here is threading and not multiprocessing.

Create two functions, one for the threading one for the actually function. Here is where the underscore comes in handy.

main.py

...
import threading
from time import sleep
...
class Backend(QObject):
def __init__(self):
QObject.__init__(self) def bootUp(self):
t_thread = threading.Thread(target=self._bootUp)
t_thread.daemon = True
t_thread.start() def _bootUp(self):
while True:
curr_time = strftime("%H:%M:%S", gmtime())
print(curr_time)
sleep(1)...

The above code has an underscore function that does the work creating an updated time.

Create a pyqtsignal called updated and call it from a function called updater

main.py

...
from PyQt5.QtCore import QObject, pyqtSignal... def __init__(self):
QObject.__init__(self) updated = pyqtSignal(str, arguments=['updater']) def updater(self, curr_time):
self.updated.emit(curr_time) ...

In the above code the pyqtSignal, updated, has as it arguments parameter the list containing the name of the function ‘updater’. From this updater function, qml shall receive data. In the updater function we call(emit) the signal updated and pass data (curr_time) to it

Update the qml, receive the signal by creating a signal handler, a signal handlers name is the capitalised form of the signal name preceded by ‘on’. So, ‘mySignal’ becomes ‘onMySignal’ and ‘mysignal’ becomes ‘onMysignal’.

main.qml

...
target: backend function onUpdated(msg) {
currTime = msg;
}
...

In the above code you can see the signal handler for updated signal is called onUpdated. It is also has the curr_time passed to it as msg.

All is well but we are yet to call the updater function. Having a seperate function to call the signal is not necessary for a small application as this. But in a big application, it is the recommended way to do it. Change the delay seconds to 1/10 of a second. I have found this figure to the best to update time.

main.py

...
curr_time = strftime("%H:%M:%S", gmtime())
self.updater(curr_time)
sleep(0.1)
...

The bootUp function should be called immediately after the UI has loaded.

...
engine.rootObjects()[0].setProperty('backend', back_end)back_end.bootUp()sys.exit(app.exec())

All is done!!!

Run the code:

>>> python main.py

Your seconds should be updating now

Bonus:

Make the Window Frameless

You can make the window frameless and stick it to the bottom right of the Screen.

main.qml

...
height: 600
x: screen.desktopAvailableWidth - width - 12
y: screen.desktopAvailableHeight - height - 48
title: "HelloApp"flags: Qt.FramelessWindowHint | Qt.Window...

The above code sets x, y for the window and add flags, to make the window frameless. The Qt.Window flag ensures that even though the window is frameless, we still get a Taskbutton

Run it, and you should be glad with what you see.

>>> python main.py

At long last, the coding has ended and here are the final codes.

main.py

import sys
from time import strftime, gmtime
import threading
from time import sleepfrom PyQt5.QtGui import QGuiApplication
from PyQt5.QtQml import QQmlApplicationEngine
from PyQt5.QtCore import QObject, pyqtSignal
class Backend(QObject):
def __init__(self):
QObject.__init__(self) updated = pyqtSignal(str, arguments=['updater']) def updater(self, curr_time):
self.updated.emit(curr_time) def bootUp(self):
t_thread = threading.Thread(target=self._bootUp)
t_thread.daemon = True
t_thread.start() def _bootUp(self):
while True:
curr_time = strftime("%H:%M:%S", gmtime())
self.updater(curr_time)
sleep(0.1)
app = QGuiApplication(sys.argv)
engine = QQmlApplicationEngine()
engine.quit.connect(app.quit)
engine.load('./UI/main.qml')back_end = Backend()engine.rootObjects()[0].setProperty('backend', back_end)back_end.bootUp()sys.exit(app.exec())

main.qml

import QtQuick 2.15
import QtQuick.Controls 2.15ApplicationWindow {
visible: true
width: 360
height: 600
x: screen.desktopAvailableWidth - width - 12
y: screen.desktopAvailableHeight - height - 48
title: "HelloApp" flags: Qt.FramelessWindowHint | Qt.Window property string currTime: "00:00:00"
property QtObject backend Rectangle {
anchors.fill: parent Image {
sourceSize.width: parent.width
sourceSize.height: parent.height
source: "./images/playas.jpg"
fillMode: Image.PreserveAspectFit
} Text {
anchors {
bottom: parent.bottom
bottomMargin: 12
left: parent.left
leftMargin: 12
}
text: currTime
font.pixelSize: 48
color: "white"
} }
Connections {
target: backend function onUpdated(msg) {
currTime = msg;
}
}}

Apart from the names that you may have changed, everything should be similar.

Build and next steps

Building a pyqt application could be the easiest, since it is widely known.

To build, install pyinstaller, since building is a part of the bonus section, we didn’t install it before.

>>> pip install pyinstaller

We could have easily done run the following code in the applications folder (helloApp) but, we have to take care of the resources that we used.

>>> pyinstaller main.py

Instead, first do:

>>> pyi-makespec main.py

It generates a spec file for you to update first, then you can run pyinstaller again

The datas parameter can be used to include data files in your App or App’s folder. Its a list of tuples, and the tuple always has two items, the target path, we will be including, and the destination path, where it should be stored in the Application’s folder. The destination path must be relative. If you want it placed right there with the app’s executables, you make it an empty string (‘’), if you want it to be in a nested folder within the application’s folder, you specify the nested folder (‘nest/nested/really_nested’)

Update the datas parameter like you see below to match the path to your helloApp’s UI folder on your computer.

Set the console parameter to False, since this is a Gui and we are not testing it.

main.spec

...
a = Analysis(['main.py'],
...
datas=[('I:/path/to/helloApp/UI', 'UI')],
hiddenimports=[],
...
exe = EXE(pyz,
a.scripts,
[],
...
name='main',
debug=False,
...
console=False )
coll = COLLECT(exe,
...
upx_exclude=[],
name='main')

The name parameter in the EXE call is the name of the executable itself. eg. main.exe, or main.dmg but the name parameter in the COLLECT call is for the folder name in which the executable and all its accompanying files will be stored, both can be changed. But the names were based on the file we used to generate the spec, remember: ‘main.py’

Finally, build your application using

>>> pyinstaller main.spec

Now you should see a folder named ‘dist’ with another folder within it named ‘main’ with the application files. Search for the main.exe, or main executable and run it. TADAAA! And all is well.

Next Steps

Apart from the way that the UI folder was included and used in the application, all of the things we’ve talked about are used in production. Resources are bundle before being deployed in production.

But the Signals, how the background image was used, to the frameless window are all techniques used in production and so to speak, in real-world. Its just that there is more to it. Yes there is more to frameless Windows, you have to handle the titlebar, the resizing and dragging of the window among other things if you are not going to use it as a splash screen, not that complex, but it goes beyond the scope of this tutorial.

Qml is a lot more than Images, Rectangles and Text, and the Layout system are four types. They are easy to study, but practical approach is the best, so I have not bothered to explain them.

Continue with PyQt and Qml, it will lead into a career in software development, embedded systems, and in the future Data visualization. Prefer it over TKinter, its popularity keeps increasing by the day.

More resources can be found on: riverbankcomputing.com, evileg.com, Youtube, Udemy, and even on Qt’s doc.qt.io

See you next time.

--

--