Migrate from 0.3 to 0.3.1

Migrate from 0.2 to 0.3MigrateMigrate from 0.3.1 to 0.4

New wm_touch, wm_pen

If you want to add theses input providers, please edit your configuration file, and add theses lines in the input section:

[input]
wm_touch = wm_touch
wm_pen = wm_pen

New device attribute in touch

touch.device is now available, and fill with the device in the configuration file. When you write:

[input]
pen = wm_pen

pen is will be the device name, and wm_pen will be the input provider to use for creation.

Connect

With the new function connect, you can do things like this :

label = MTLabel()
slider = MTSlider()

# widget connect
slider.connect('on_value_change', label, 'text')
# alternate writing
connect(slider, 'on_value_change', label, 'text')

Or, mix types :

label = MTLabel()
label2 = MTLabel2()
btn = MTButton()
slider = MTXYSlider()

slider.connect('on_value_change', label, 'text') # will display (0, 0) on label
slider.connect('on_value_change', label, (None, 'text')) # will display only Y value
slider.connect('on_value_change', btn, 'size') # will update x/y to size