gl canvas and context
This commit is contained in:
		@ -7,7 +7,7 @@
 | 
			
		||||
## PLEASE DO *NOT* EDIT THIS FILE!
 | 
			
		||||
###########################################################################
 | 
			
		||||
 | 
			
		||||
from .video import VideoPanel
 | 
			
		||||
from .video import VideoCanvas
 | 
			
		||||
import wx
 | 
			
		||||
import wx.xrc
 | 
			
		||||
 | 
			
		||||
@ -45,7 +45,7 @@ class PreviewPanel ( wx.Panel ):
 | 
			
		||||
 | 
			
		||||
        centering_sizer.Add( ( 0, 0), 1, wx.EXPAND, 5 )
 | 
			
		||||
 | 
			
		||||
        self.video_panel = VideoPanel( self, wx.ID_ANY, wx.DefaultPosition, wx.Size( 400,300 ), wx.BORDER_NONE|wx.FULL_REPAINT_ON_RESIZE|wx.TAB_TRAVERSAL )
 | 
			
		||||
        self.video_panel = VideoCanvas( self, wx.ID_ANY, wx.DefaultPosition, wx.Size( 400,300 ), wx.BORDER_NONE|wx.FULL_REPAINT_ON_RESIZE|wx.TAB_TRAVERSAL )
 | 
			
		||||
        centering_sizer.Add( self.video_panel, 0, wx.EXPAND, 5 )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -64,7 +64,19 @@ class PreviewPanel ( wx.Panel ):
 | 
			
		||||
        self.SetSizer( centering_sizer )
 | 
			
		||||
        self.Layout()
 | 
			
		||||
 | 
			
		||||
        # Connect Events
 | 
			
		||||
        self.Bind( wx.EVT_INIT_DIALOG, self.initdialog_event_handler )
 | 
			
		||||
        self.Bind( wx.EVT_SIZE, self.size_event_handler )
 | 
			
		||||
 | 
			
		||||
    def __del__( self ):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    # Virtual event handlers, override them in your derived class
 | 
			
		||||
    def initdialog_event_handler( self, event ):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
    def size_event_handler( self, event ):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user