Final Crop

In this tutorial series you have created a simple user interface for a crop simulation. You have seen how to:

  • Create the basic structure of a PyQt application
  • Use layouts to present and manage the widgets of an interface
  • Switch between interfaces contained within a stacked layout
  • Connect events, such as button presses, to methods
  • Access functionality present in other classes, such as the Wheat class
  • Create dialog windows to provide additional input
  • Use resource files to embed graphics in your application
  • Make use of graphics in a simple context

We have barely scratched the surface of what is possible in PyQt but this tutorial has been a good introduction. You now have some familiarity with the following PyQt widgets:

Spend sometime reading over the class documentation for each widget to become more familiar with its attributes and methods. Remember that a particular class may inherit attributes and methods from a parent class - always look out for that!

In the next section we will introduce a few new widgets and spend time dealing with event handling as we build a field simulation.

However, before that why don't you try and develop an animal simulation using what you have learned from this section.