prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  "Your first Toga app" (helloworld) does not work as shown in the docs
  I copy-pasted the code [found here](https://toga.readthedocs.io/en/latest/tutorial/tutorial-0.html).  When I ran it, I got this error message:
  
  ```
  $ python -m helloworld
  Traceback (most recent call last):
    File "C:\Users\brendan\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File "C:\Users\brendan\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code
      exec(code, run_globals)
    File "C:\bjk\tmp\beeware-toga\helloworld.py", line 2, in <module>
      from tutorial import __version__
  ModuleNotFoundError: No module named 'tutorial'
  ```
  
  If I comment out the line `from tutorial import __version__` and delete the kwarg `version=__version__` in the call to `toga.App`, the module does run; i.e., the GUI window pops up and seems to work.  However, during the run, I get a warning:
  
  ```
  $ python -m helloworld
  C:\Users\brendan\AppData\Local\Programs\Python\Python39\lib\site-packages\clr_loader\wrappers.py:20: DeprecationWarning:
   builtin type GC Offset Base has no __module__ attribute
    return self._callable(ffi.cast("void*", buf_arr), len(buf_arr))
  ```
  
  Maybe it's just out-of-date documentation?
  
  P.S. FWIW, a straight copy-paste of the second tutorial, "[A slightly less toy example](https://toga.readthedocs.io/en/latest/tutorial/tutorial-1.html)" works as is, although it does produce the same DeprecationWarning.
  
  P.P.S.  Ditto the fourth tutorial, "[Let’s build a browser!](https://toga.readthedocs.io/en/latest/tutorial/tutorial-3.html)"
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `examples/tutorial0/tutorial/app.py`
  Content:
  ```
  1 import toga
  2 from tutorial import __version__
  3 
  4 
  5 def button_handler(widget):
  6     print("hello")
  7 
  8 
  9 def build(app):
  10     box = toga.Box()
  11 
  12     button = toga.Button('Hello world', on_press=button_handler)
  13     button.style.padding = 50
  14     button.style.flex = 1
  15     box.add(button)
  16 
  17     return box
  18 
  19 
  20 def main():
  21     return toga.App(
  22         'First App',
  23         'org.beeware.helloworld',
  24         author='Tiberius Yak',
  25         description="A testing app",
  26         version=__version__,
  27         home_page="https://beeware.org",
  28         startup=build
  29     )
  30 
  31 
  32 if __name__ == '__main__':
  33     main().main_loop()
  34
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/examples/tutorial0/tutorial/app.py b/examples/tutorial0/tutorial/app.py
  --- a/examples/tutorial0/tutorial/app.py
  +++ b/examples/tutorial0/tutorial/app.py
  @@ -1,5 +1,4 @@
   import toga
  -from tutorial import __version__
   
   
   def button_handler(widget):
  @@ -18,15 +17,7 @@
   
   
   def main():
  -    return toga.App(
  -        'First App',
  -        'org.beeware.helloworld',
  -        author='Tiberius Yak',
  -        description="A testing app",
  -        version=__version__,
  -        home_page="https://beeware.org",
  -        startup=build
  -    )
  +    return toga.App('First App', 'org.beeware.helloworld', startup=build)
   
   
   if __name__ == '__main__':
  
verification_info: {"golden_diff": "diff --git a/examples/tutorial0/tutorial/app.py b/examples/tutorial0/tutorial/app.py\n--- a/examples/tutorial0/tutorial/app.py\n+++ b/examples/tutorial0/tutorial/app.py\n@@ -1,5 +1,4 @@\n import toga\n-from tutorial import __version__\n \n \n def button_handler(widget):\n@@ -18,15 +17,7 @@\n \n \n def main():\n-    return toga.App(\n-        'First App',\n-        'org.beeware.helloworld',\n-        author='Tiberius Yak',\n-        description=\"A testing app\",\n-        version=__version__,\n-        home_page=\"https://beeware.org\",\n-        startup=build\n-    )\n+    return toga.App('First App', 'org.beeware.helloworld', startup=build)\n \n \n if __name__ == '__main__':\n", "issue": "\"Your first Toga app\" (helloworld) does not work as shown in the docs\nI copy-pasted the code [found here](https://toga.readthedocs.io/en/latest/tutorial/tutorial-0.html).  When I ran it, I got this error message:\r\n\r\n```\r\n$ python -m helloworld\r\nTraceback (most recent call last):\r\n  File \"C:\\Users\\brendan\\AppData\\Local\\Programs\\Python\\Python39\\lib\\runpy.py\", line 197, in _run_module_as_main\r\n    return _run_code(code, main_globals, None,\r\n  File \"C:\\Users\\brendan\\AppData\\Local\\Programs\\Python\\Python39\\lib\\runpy.py\", line 87, in _run_code\r\n    exec(code, run_globals)\r\n  File \"C:\\bjk\\tmp\\beeware-toga\\helloworld.py\", line 2, in <module>\r\n    from tutorial import __version__\r\nModuleNotFoundError: No module named 'tutorial'\r\n```\r\n\r\nIf I comment out the line `from tutorial import __version__` and delete the kwarg `version=__version__` in the call to `toga.App`, the module does run; i.e., the GUI window pops up and seems to work.  However, during the run, I get a warning:\r\n\r\n```\r\n$ python -m helloworld\r\nC:\\Users\\brendan\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\clr_loader\\wrappers.py:20: DeprecationWarning:\r\n builtin type GC Offset Base has no __module__ attribute\r\n  return self._callable(ffi.cast(\"void*\", buf_arr), len(buf_arr))\r\n```\r\n\r\nMaybe it's just out-of-date documentation?\r\n\r\nP.S. FWIW, a straight copy-paste of the second tutorial, \"[A slightly less toy example](https://toga.readthedocs.io/en/latest/tutorial/tutorial-1.html)\" works as is, although it does produce the same DeprecationWarning.\r\n\r\nP.P.S.  Ditto the fourth tutorial, \"[Let\u2019s build a browser!](https://toga.readthedocs.io/en/latest/tutorial/tutorial-3.html)\"\n", "before_files": [{"content": "import toga\nfrom tutorial import __version__\n\n\ndef button_handler(widget):\n    print(\"hello\")\n\n\ndef build(app):\n    box = toga.Box()\n\n    button = toga.Button('Hello world', on_press=button_handler)\n    button.style.padding = 50\n    button.style.flex = 1\n    box.add(button)\n\n    return box\n\n\ndef main():\n    return toga.App(\n        'First App',\n        'org.beeware.helloworld',\n        author='Tiberius Yak',\n        description=\"A testing app\",\n        version=__version__,\n        home_page=\"https://beeware.org\",\n        startup=build\n    )\n\n\nif __name__ == '__main__':\n    main().main_loop()\n", "path": "examples/tutorial0/tutorial/app.py"}], "after_files": [{"content": "import toga\n\n\ndef button_handler(widget):\n    print(\"hello\")\n\n\ndef build(app):\n    box = toga.Box()\n\n    button = toga.Button('Hello world', on_press=button_handler)\n    button.style.padding = 50\n    button.style.flex = 1\n    box.add(button)\n\n    return box\n\n\ndef main():\n    return toga.App('First App', 'org.beeware.helloworld', startup=build)\n\n\nif __name__ == '__main__':\n    main().main_loop()\n", "path": "examples/tutorial0/tutorial/app.py"}]}