Umaryusuf's Posts
Nairaland Forum › Umaryusuf's Profile › Umaryusuf's Posts
1 2 3 4 5 6 7 8 9 10 (of 10 pages)
^^^^^ Thank u all for contributing. Any good TextEditor/IDE one is comfortable with is just fine to work this tutorial. @NPComplete, to add to the reply given to u by basbone, the major advantage .exe file has is in terms of distribution. Any computer without python installation can run python scripts that has been compiled to .exe with lots of dependency files (such as .dll etc) based on the complexity of the app in question, so generally speaking .py is faster than .exe |
[size=20pt]Introduction[/size] This tutorial will show you how to design and build a fully-functional desktop Graphical User Interface (GUI) application for maths Expression Evaluation using a combination of Python 2.x, wxPython, wxFormBuilder, Py2exe and InnoSetup Compiler. The app we will build is going to be a mini calculator that can perform valid Mathematical Expression Operations of addition, subtraction, multiplication, and division. First of all, I will use python syntax (leveraging on the eval() python function) to make a Console/CLI (Command Line Interface) program, then convert it into a Graphical User Interface (GUI) app so that users have much more control of it. I will use the CLI program to explain some python basic syntax for those who may be struggling with understanding of the python basics. If you feel you need to learn/refresh your python knowledge, then I recommend reading this book “A Bytes of Python” by Swaroop C H. By the way, some popular software vendors using what we are about to learn to power there software include;- Taskcoach.org, Bittorrent.com, Editra.org, and dropbox.com (Source: www.wikipedia.org/wiki/WxPython) Basic requirements for this class are:- ~ Basic knowledge of Python programming – I will do my best to simplify the process of this tutorial as much as possible, so everyone will be able to follow along. ~ A Windows Operating System (OS) machine (other OS users can follow along as well) - I am using 32-bit OS computer using the Windows-7 operating system. ~ Python2 interpreter, Text editor, wxPython library, wxFormBuilder, Py2Exe, and Inno Setup Compiler – I will show you how to get and install all of these software soon. Before we start installing and configuring the software we will be using, let me quickly explain what each of them will be used for and where to get/download them;- Python 2.x interpreter Python is an easy to learn, dynamic and powerful modern programming language. Two similar but incompatible versions of Python are in widespread use (Python2.x and Python3.x). Pls note that we will use Python2.x for this class, download the version for your OS below. Download link: www.python.org/downloads/windows/ wxPython wxPython is a free GUI toolkit which can be used to build Python GUIs. It is a wrapper for the cross-platform C++ GUI API wxWidgets. Some other GUI library/toolkits for Python include; Tkinter, PySide/PyQt, Kivy and PyGTK Download link: www.wxpython.org/download.php Py2exe Py2Exe is a Python Distutils extension which converts python scripts into executable windows programs, able to run without requiring a python installation. Some other Python extension/library which converts python scripts into executable programs are; PyInstaller, Py2app, cx_Freeze, bbFreeze, and vendorID Download link: www.py2exe.org or http://www.lfd.uci.edu/~gohlke/pythonlibs/#py2exe wxFormBuilder wxFormBuilder is a free Python GUI constructor toolkit for wxWidgets GUI design which can be used to build Python GUIs. Similar python GUI constructor toolkits are wxGlade, Boa Constructor, PythonCard and wxDesigner Download link: www.sourceforge.net/projects/wxformbuilder/ InnoSetup Compiler Inno Setup is used to create installer for Windows programs. Similar programs are NSIS and WiX Download link: www.innosetup.com For sure, you also need a text editor if you don’t have one already, you can get NotePad++ at: www.notepad-plus-plus.org If for any reason, any one of the links I provided is broken, use Google to search and get the correct link. Also be free to drop you questions/comments. Hope you enjoyed this class? See you next time! |
Am sharing the procedure of building similar apps through a tutorial at: https://www.nairaland.com/2008698/learn-how-build-desktop-software See you there!
|
Desktop application development tutorial using Python programming language for beginners is taking place on Naira land at: https://www.nairaland.com/2008698/learn-how-build-desktop-software See you there! |
Following request by some NL users few months back, I create this thread to share the little I know about making desktop applications using PYTHON programming language with its graphical users interface (GUI) library called wxPython. This tutorial will cover the same procedure I have used to create some open source desktop apps for some guys here such as this: https://www.nairaland.com/1790669/visitors-customers-data-app-python http://www.4shared.com/zip/XmLNVQnKba/NLTempCalc_Setup.html http://www.4shared.com/zip/EShYucoDce/ttp_setup.html http://www.4shared.com/zip/e1EvFyD_ba/gpa_calc.html The content will include;- ~IntroductionBefore we start, I want to be sure if someone out there is interested in this?
|
@ Djangocode, For some time now, I hv been trying to upload the file on datafilehost.com but no way to get the url as it keeps me on hold for long..... “Upload in progress. Please Wait...” May be is the problem is from my PC browsers or so... Sorry about that!
|
^^ you're most welcome. Since ur interest is desktop and web apps, here are some recommended libraries, any one u go with 1st is just fine:~ Desktop: TkInter, PyQt/PySide, wxPython, Kivy, and PyGTK Web: Web2py, Bottle, Django, Flask and Pyramid. |
because GUI or desktop apps hv low traffic here. Trust me if was a mobile or web library hmmm...... |
coolestbiodun:Keep up the spirit dude. What you need next is to take your py basic to the next level by learning more of its libraries that will enable u specialize and solve real world problems in any of these areas: 1) Console applications 2) Desktop apps 3) Web apps 4) Embedded Systems 5) Mobile apps Good luck. |
orion777:What are u posting here? Check this thread share ==> https://www.nairaland.com/1565663/blackberry-repligo-pdf-reader-product |
youngcee:You hv to be careful with this! Udemy allow users to change their account email, if the account email is changed that is the end..... The videos can be downloaded even if the instructor didn't enable that. Just like on YouTube, there several ways to download streaming videos online. |
Lol.. ![]() |
Is like d form is sent to a processing script saved in a .HTML file? Change ur file extension to .PHP or what ever dynamic language u used. |
The fault is its low RAM! Am facing same challenge with mine. |
Happy new to all. |
I was surprised, yesterday Tuesday 21/10/14 interesting nite of champions league wasn't on NairaLand (at least the FP). What could have happens? I usually run here for quick live scores etc simply because NL loads faster than most of the live score websites. Hope to nite mods will be up to the task?
|
O boy! |
^^ I will upload there soon. |
nikdel:OK. I may create a thread to teach something like this b4 d yr runs out, just that I don't want to start it and take longtime to finish cos of my daily activities. |
jobakademy:What I mean is that, hardly would you see apps by naija guys developed by some of these easy to use tools. Most are wrongly guided the hard way. |
OK, let's see the magic. |
[quote author=jobakademy post=27123279][/quote]Amend your thread tiltle to read "...withOUT coding" instead of "with coding"
|
I have plans to created similar thread, but my daily schedules is not helping. I wonder sometimes that Nigerians are not taking advantages of these services that allows nontechnical people develop great android apps (for Free) with little or no programming skills. I have seen great apps developed with App Inventor (www.appinventor.mit.edu) and its like as listed below; 1) appery.io 2) mobileroadie.com 3) theappbuilder.com 4) goodbarber.com 5) appypie.com 6) appmachine.com 7) appinventor.mit.edu 8 ) gamesalad.com 9) biznessapps.com 10) appmakr.com 11) shoutem.com 12) jqueryui.com 13) phonegap.com 14) ibuildapp.com 15) sencha.com 16) e.t.c OP Keep on with the tutorial. |
If u are coming from braces background you will not like python's indentation. But personally, I love to see programming codes being indented/spaced out as much as possible python or not. |
And u and her made it to FP! Congrats. |
Let me go sleep |
Maybe this article will help: http://jbremer.org/python-source-obfuscation-using-asts/ |
Mod, move to jokers section! |
Aysuperstories: The leader of the Boko Haram sect, Abubakar Shekau (or his clone), who is said to have been killed by Nigerian (or Cameroonian) troops last month is alive.I just wanted my mb watching ur video |
ficko: Hello Programmers out there please if i want to start coding android apps or games what are the required software i would need please your opinions count. Thanks and god blessTry jquerymobile.com or phonegap.com The following services hv drag and drop tools to build android apps; 1) appery.io 2) mobileroadie.com 3) theappbuilder.com 4) goodbarber.com 5) appypie.com 6) appmachine.com 7) appinventor.mit.edu 8 ) gamesalad.com 9) biznessapps.com 10) appmakr.com 11) shoutem.com 12) jqueryui.com 13) phonegap.com 14) ibuildapp.com 15) sencha. Enjoy |
Mashallah! Thank you for this post. Point of note: Some ulamas distinguished btw days and nites here. The best days are these first 10days of Dulhijjah while the best nites are the last 10nites of Ramadan (especially the lailatul qadr). |

