pybee/toga — pull request #16 by asmeurer (2014-08-05 23:54:57+00:00)
Title: Fix a Python 3 issue

Here is the script I was using (it now gives a ctypes error)

```py
import toga

def button_handler(widget):
print("hello")

if __name__ == '__main__':

app = toga.App('First App', 'org.pybee.helloworld')

container = toga.Container()

button = toga.Button('Hello world', on_press=button_handler)

progress = toga.ProgressBar(10)

container.add(button)
container.add(progress)

container.constrain(button.TOP == container.TOP + 50)
container.constrain(button.LEADING == container.LEADING + 50)
container.constrain(button.TRAILING + 50 == container.TRAILING)
container.constrain(button.BOTTOM + 50 < container.BOTTOM)
container.constrain(progress.BOTTOM == (container.BOTTOM - button.BOTTOM)/2)

app.main_window.content = container

app.main_loop()

```