A minimal application

To create a very small Wax application, we don't need a lot of code. Such a minimal app looks something like this.

# minimal-app-1.py

from wax import *

app = Application(Frame, title='minimal-app-1')
app.Run()

But this isn't very useful as a starting point -- no widgets are defined, just an Application instance.

For a more realistic example, consider the following:

# minimal-app-2.py

from wax import *

class MainFrame(Frame):
    def Body(self):
        # add widgets here
        pass

app = Application(MainFrame, title='minimal-app-2')
app.Run()

Most (regular) Wax applications start out like this... by defining a main frame, and an Application instance that uses it. This simple example can be used as a starting point for an application.