cleanup
This commit is contained in:
		@ -48,7 +48,7 @@ class MainFrame ( wx.Frame ):
 | 
			
		||||
        self.media_splitter.Bind( wx.EVT_IDLE, self.media_splitterOnIdle )
 | 
			
		||||
        self.media_splitter.SetMinimumPaneSize( 100 )
 | 
			
		||||
 | 
			
		||||
        self.media_panel = wx.Panel( self.media_splitter, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        self._media_panel = wx.Panel( self.media_splitter, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        self.right_panel = wx.Panel( self.media_splitter, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        right_sizer = wx.BoxSizer( wx.HORIZONTAL )
 | 
			
		||||
 | 
			
		||||
@ -60,15 +60,15 @@ class MainFrame ( wx.Frame ):
 | 
			
		||||
        self.center_panel = wx.Panel( self.filter_splitter, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        center_sizer = wx.BoxSizer( wx.VERTICAL )
 | 
			
		||||
 | 
			
		||||
        self.preview_panel = PreviewPanel( self.center_panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        center_sizer.Add( self.preview_panel, 1, wx.EXPAND | wx.ALL, 5 )
 | 
			
		||||
        self._preview_panel = PreviewPanel( self.center_panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        center_sizer.Add( self._preview_panel, 1, wx.EXPAND | wx.ALL, 5 )
 | 
			
		||||
 | 
			
		||||
        self.navigation_panel = wx.Panel( self.center_panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        self._navigation_panel = wx.Panel( self.center_panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        navigation_sizer = wx.BoxSizer( wx.VERTICAL )
 | 
			
		||||
 | 
			
		||||
        scrubber_sizer = wx.BoxSizer( wx.HORIZONTAL )
 | 
			
		||||
 | 
			
		||||
        self.scrubber_slider = wx.Slider( self.navigation_panel, wx.ID_ANY, 50, 0, 100, wx.DefaultPosition, wx.DefaultSize, wx.SL_HORIZONTAL )
 | 
			
		||||
        self.scrubber_slider = wx.Slider( self._navigation_panel, wx.ID_ANY, 50, 0, 100, wx.DefaultPosition, wx.DefaultSize, wx.SL_HORIZONTAL )
 | 
			
		||||
        scrubber_sizer.Add( self.scrubber_slider, 1, wx.ALL, 5 )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -76,7 +76,7 @@ class MainFrame ( wx.Frame ):
 | 
			
		||||
 | 
			
		||||
        control_sizer = wx.BoxSizer( wx.HORIZONTAL )
 | 
			
		||||
 | 
			
		||||
        self.control_toolbar = wx.ToolBar( self.navigation_panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TB_HORIZONTAL )
 | 
			
		||||
        self.control_toolbar = wx.ToolBar( self._navigation_panel, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TB_HORIZONTAL )
 | 
			
		||||
        self.m_tool1 = self.control_toolbar.AddTool( wx.ID_ANY, _(u"tool"), wx.NullBitmap, wx.NullBitmap, wx.ITEM_NORMAL, wx.EmptyString, wx.EmptyString, None )
 | 
			
		||||
 | 
			
		||||
        self.control_toolbar.Realize()
 | 
			
		||||
@ -87,32 +87,32 @@ class MainFrame ( wx.Frame ):
 | 
			
		||||
        navigation_sizer.Add( control_sizer, 0, wx.EXPAND, 5 )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        self.navigation_panel.SetSizer( navigation_sizer )
 | 
			
		||||
        self.navigation_panel.Layout()
 | 
			
		||||
        navigation_sizer.Fit( self.navigation_panel )
 | 
			
		||||
        center_sizer.Add( self.navigation_panel, 0, wx.EXPAND | wx.ALL, 5 )
 | 
			
		||||
        self._navigation_panel.SetSizer( navigation_sizer )
 | 
			
		||||
        self._navigation_panel.Layout()
 | 
			
		||||
        navigation_sizer.Fit( self._navigation_panel )
 | 
			
		||||
        center_sizer.Add( self._navigation_panel, 0, wx.EXPAND | wx.ALL, 5 )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        self.center_panel.SetSizer( center_sizer )
 | 
			
		||||
        self.center_panel.Layout()
 | 
			
		||||
        center_sizer.Fit( self.center_panel )
 | 
			
		||||
        self.filter_panel = wx.Panel( self.filter_splitter, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        self.filter_splitter.SplitVertically( self.center_panel, self.filter_panel, -200 )
 | 
			
		||||
        self._filter_panel = wx.Panel( self.filter_splitter, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        self.filter_splitter.SplitVertically( self.center_panel, self._filter_panel, -200 )
 | 
			
		||||
        right_sizer.Add( self.filter_splitter, 1, wx.EXPAND, 5 )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        self.right_panel.SetSizer( right_sizer )
 | 
			
		||||
        self.right_panel.Layout()
 | 
			
		||||
        right_sizer.Fit( self.right_panel )
 | 
			
		||||
        self.media_splitter.SplitVertically( self.media_panel, self.right_panel, 200 )
 | 
			
		||||
        self.media_splitter.SplitVertically( self._media_panel, self.right_panel, 200 )
 | 
			
		||||
        top_sizer.Add( self.media_splitter, 1, wx.EXPAND, 5 )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        self.top_panel.SetSizer( top_sizer )
 | 
			
		||||
        self.top_panel.Layout()
 | 
			
		||||
        top_sizer.Fit( self.top_panel )
 | 
			
		||||
        self.timeline_panel = wx.Panel( self.timeline_splitter, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        self.timeline_splitter.SplitHorizontally( self.top_panel, self.timeline_panel, -100 )
 | 
			
		||||
        self._timeline_panel = wx.Panel( self.timeline_splitter, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
 | 
			
		||||
        self.timeline_splitter.SplitHorizontally( self.top_panel, self._timeline_panel, -100 )
 | 
			
		||||
        main_sizer.Add( self.timeline_splitter, 1, wx.EXPAND, 5 )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user