fork download
  1. <?xml version="1.0"?>
  2. <!-- generated by wxGlade 1.0.4 on Sun Apr 23 13:12:59 2023 -->
  3.  
  4. <application class="MyApp" encoding="UTF-8" for_version="3.0" header_extension=".h" indent_amount="4" indent_symbol="space" is_template="0" language="python" mark_blocks="1" name="app" option="0" overwrite="1" path="./wxglade_out.py" source_extension=".cpp" top_window="View" use_gettext="0" use_new_namespace="1">
  5. <object class="View" name="View" base="EditFrame">
  6. <extracode>from pubsub import pub\nfrom mvc_example import Env, install_package, interp\n\nclass Controller(object):\n def __init__(self):\n pub.subscribe(self.read, "Controller")\n def read(self, x, env):\n pub.sendMessage("Model.eval", x = x, env = env)\n\nclass Model(object):\n def __init__(self):\n pub.subscribe(self.eval, "Model")\n def eval(self, x, env):\n pub.sendMessage("View.setProperty", env = interp(x, env))</extracode>
  7. <extracode_pre>self.env = Env(install_package())</extracode_pre>
  8. <extracode_post>pub.subscribe(self.setProperty, "View")</extracode_post>
  9. <size>400, 300</size>
  10. <title>ModelViewController</title>
  11. <style>wxDEFAULT_FRAME_STYLE</style>
  12. <object class="wxGridSizer" name="grid_sizer_1" base="EditGridSizer">
  13. <rows>2</rows>
  14. <cols>2</cols>
  15. <vgap>0</vgap>
  16. <hgap>0</hgap>
  17. <object class="sizeritem">
  18. <option>0</option>
  19. <border>0</border>
  20. <flag>wxALIGN_CENTER</flag>
  21. <object class="wxStaticText" name="text" base="EditStaticText">
  22. <label>My Money</label>
  23. </object>
  24. </object>
  25. <object class="sizeritem">
  26. <option>0</option>
  27. <border>0</border>
  28. <flag>wxALIGN_CENTER</flag>
  29. <object class="wxButton" name="add" base="EditButton">
  30. <events>
  31. <handler event="EVT_BUTTON">lambda event: pub.sendMessage("Controller.read", x = self.add.GetLabel(), env = self.env)</handler>
  32. </events>
  33. <label>Add Money</label>
  34. </object>
  35. </object>
  36. <object class="sizeritem">
  37. <option>0</option>
  38. <border>0</border>
  39. <flag>wxALIGN_CENTER</flag>
  40. <object class="wxTextCtrl" name="ctrl" base="EditTextCtrl">
  41. <disabled>1</disabled>
  42. <value>""</value>
  43. </object>
  44. </object>
  45. <object class="sizeritem">
  46. <option>0</option>
  47. <border>0</border>
  48. <flag>wxALIGN_CENTER</flag>
  49. <object class="wxButton" name="remove" base="EditButton">
  50. <events>
  51. <handler event="EVT_BUTTON">lambda event: pub.sendMessage("Controller.read", x = self.remove.GetLabel(), env = self.env)</handler>
  52. </events>
  53. <label>Remove Money</label>
  54. </object>
  55. </object>
  56. </object>
  57. </object>
  58. </application>
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty