Writing massive applications leaves a lot of room for we failable humans to get a few things wrong. Luckily, WXPython comes with an awesome builtin debugging tool called InspectionTool. This'll walk you though using it with re-wx.
The tool is its own top-level Frame independent of yours, so you can create the InspectionTool anywhere as long as it's after the creation of wx.App.
def main():
app = wx.App()
import wx.lib.inspection
wx.lib.inspection.InspectionTool().Show()
# rest of your code hereThis'll launch the the Inspection Tool, which looks like this:
All builtin re-wx componets take a prop called name. When supplied, it will tag the wx components with that name in the debugger. This makes it much easier to find specific blocks is a large application.
def render():
return wsx([StaticText, {'name': 'My Clock', ...}])
