(self, parent)
Frame Init
Frame Init
Frame Init
def __init__(self, parent):
        wx.Frame.__init__(self, parent, size=(700, 600), title="PyPubSubMonitor")
        panel = wx.Panel(self)
        splitter = wx.SplitterWindow(panel, style=wx.SP_BORDER)

        self.NotifyControl = NotifierPanel(panel)
        self.TopicTree = TopicTreePanel(splitter)
        self.Log = LogPanel(splitter)
        self.Entry = LastLogEntryPanel(panel)
        self.Count = CountPanel(panel)

        ##        redirect = Redirector(self.Log.getText())
        self.Logger = MonitorLogger(pub, self.Log)

        pub.subscribe(self.psUpdate, pub.ALL_TOPICS)
        pub.subscribe(self.psShow, 'monitor.show')
        pub.subscribe(self.psHide, 'monitor.hide')
        pub.subscribe(self.psToggle, 'monitor.toggle')

        sizer = wx.BoxSizer(wx.VERTICAL)
        row = wx.BoxSizer(wx.HORIZONTAL)
        row.Add(self.NotifyControl, 0, wx.EXPAND | wx.ALL, 3)

        splitter.SetMinimumPaneSize(20)
        splitter.SetSashGravity(0.5)
        splitter.SplitVertically(self.TopicTree, self.Log, 0)

        row.Add(splitter, 1, wx.EXPAND | wx.GROW | wx.ALL, 3)
        sizer.Add(row, 1, wx.EXPAND | wx.GROW | wx.ALL, 3)
        sizer.Add(self.Entry, 0, wx.EXPAND | wx.ALL, 3)
        sizer.Add(self.Count, 0, wx.EXPAND | wx.ALL, 3)
        panel.SetSizerAndFit(sizer)
        self.Layout()
        self.Refresh()
        self.Bind(wx.EVT_CLOSE, self.OnClose)
        print
        "Frame Init"
def __init__ ( self , parent ) : wx . Frame . __init__ ( self , parent , size = ( 700 , 600 ) , title = "PyPubSubMonitor" ) panel = wx . Panel ( self ) splitter = wx . SplitterWindow ( panel , style = wx . SP_BORDER ) self . NotifyControl = NotifierPanel ( panel ) self . TopicTree = TopicTreePanel ( splitter ) self . Log = LogPanel ( splitter ) self . Entry = LastLogEntryPanel ( panel ) self . Count = CountPanel ( panel ) ##        redirect = Redirector(self.Log.getText()) self . Logger = MonitorLogger ( pub , self . Log ) pub . subscribe ( self . psUpdate , pub . ALL_TOPICS ) pub . subscribe ( self . psShow , 'monitor.show' ) pub . subscribe ( self . psHide , 'monitor.hide' ) pub . subscribe ( self . psToggle , 'monitor.toggle' ) sizer = wx . BoxSizer ( wx . VERTICAL ) row = wx . BoxSizer ( wx . HORIZONTAL ) row . Add ( self . NotifyControl , 0 , wx . EXPAND | wx . ALL , 3 ) splitter . SetMinimumPaneSize ( 20 ) splitter . SetSashGravity ( 0.5 ) splitter . SplitVertically ( self . TopicTree , self . Log , 0 ) row . Add ( splitter , 1 , wx . EXPAND | wx . GROW | wx . ALL , 3 ) sizer . Add ( row , 1 , wx . EXPAND | wx . GROW | wx . ALL , 3 ) sizer . Add ( self . Entry , 0 , wx . EXPAND | wx . ALL , 3 ) sizer . Add ( self . Count , 0 , wx . EXPAND | wx . ALL , 3 ) panel . SetSizerAndFit ( sizer ) self . Layout ( ) self . Refresh ( ) self . Bind ( wx . EVT_CLOSE , self . OnClose ) print