- Revision
- 15960
- Author
- grant
- Date
- 2007-11-29 08:55:06 -0800 (Thu, 29 Nov 2007)
Log Message
[APP] Add the new summary view to the ExampleFrame demo
- For the moment, I shrunk the example frame so that the summary view is
approximately the same size as Chandler out-of-the-box, rather than messing
with splitters to show a blank detail view.
- For the moment, I shrunk the example frame so that the summary view is
approximately the same size as Chandler out-of-the-box, rather than messing
with splitters to show a blank detail view.
Modified Paths
Diff
Modified: branches/rearchitecture/Chandler-Debugging/ocap/debugging/py_crust.py (15959 => 15960)
--- branches/rearchitecture/Chandler-Debugging/ocap/debugging/py_crust.py 2007-11-29 16:40:34 UTC (rev 15959) +++ branches/rearchitecture/Chandler-Debugging/ocap/debugging/py_crust.py 2007-11-29 16:55:06 UTC (rev 15960) @@ -167,9 +167,9 @@ def ExampleFrame(app): """Create a demo frame, suitable for experimenting""" - from ocap.chandler import interaction, sidebar, minicalendar, preview + from ocap.chandler import interaction, sidebar, minicalendar, preview, summary - frame = wx.Frame(parent=None, title='Example', size=(970, 685)) + frame = wx.Frame(parent=None, title='Example', size=(700, 685)) frame.MenuBar = wx.MenuBar() frame.MenuBar.Append(wx.Menu(), "&File") frame.CreateStatusBar() @@ -200,7 +200,10 @@ mc_sizer.Add(mc, 1, flag=wx.EXPAND) mc_and_preview.SetSizerAndFit(mc_sizer) - main_splitter.SplitVertically(child_splitter, wx.Panel(main_splitter)) + + sum = summary.SummaryPresentation(main_splitter, ia.sidebar[0].items) + + main_splitter.SplitVertically(child_splitter, sum.View) child_splitter.SplitHorizontally(sb.GetView(), mc_and_preview) frame.Sizer = (tb / Space(0, 4) / main_splitter) @@ -209,11 +212,11 @@ child_splitter.Show() tb.Realize() frame.Show() - main_splitter.update_sash(.15234375) # ugh + main_splitter.update_sash(.24) # ugh child_splitter.update_sash(.5) Debugger(app).variables.update( frame = frame, - splitter = main_splitter, sidebar=sb + splitter = main_splitter, sidebar=sb, summary=sum ) #from wx.lib.inspection import InspectionTool #InspectionTool().Show()
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
