资 源 简 介
WxPita is a a wrapper library for wxPython, which is itself a wrapper library for the wxWidgets cross-platform GUI framework.
WxPita has two main goals:
Allow the structure of your layout code to correspond more closely to the structure of your GUI
Allow event callbacks to be bound and defined in a single step
By accomplishing these two goals, wxPita lets you write simpler, more maintainable GUI code.
Let"s take a look at a simple example:
The code for this example:
```
from wxpita import *
import time
f = SizedFrame [
Button(name="btn1", label="Button 1"),
Button(name="btn2", label="Button 2"),
TextCtrl(name="textc", style="te_multiline", expand=True, proportion=1),
]
@f.btn1.butto