Summary

In this chapter, we learned about wireframings and how they are used to mock up graphical interfaces. We also saw that, sometimes, the wireframe may already be available to you, such as a schematic diagram, so you don't have to make a new one or you can use it directly as the GUI itself.

We saw how to use Kivy's API calls to create a simple GUI using a pre-made schematic drawing and how to generate an output table of information. After making the GUI, we learned how to map the original text-based program to the GUI widgets to provide the user with a point-and-click method to adjust the program.

Finally, we looked at how to manually check the values of the fuel farm project and saw that, sometimes, it may be easier to manually test a GUI than write the automated tests if the GUI is simple enough.

There is a lot of information in this fuel farm simulation project, but it should suffice to demonstrate what can be done with Python. While actual hydrodynamic fluid calculations require advanced math, we only use the basic, algebraic calculations in this program since we don't need high fidelity in our physics modeling. Also, there is a good chance that the results in this model aren't completely accurate; but the project should be sufficient to demonstrate how a liquid storage and transfer design should work.

There are also a number of things a programmer can do from here. The original text-based code could be changed to use a database instead of class instances; the rest of the GUI could be modeled out; there are always more tests to write, and so on. Hopefully, you have gained sufficient knowledge of Python to feel comfortable writing your own programs now.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.101.109