Пример #1
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: MyPanel.__init__
        kwds["style"] = wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
	self.messenger = wxMessenger(PGH_JID, RXBOX_PWD, self, -1,)
	self.phone = Linphone(self)
        self.Videoconf_Label = wx.StaticText(self, -1, "Video Conference", style=wx.ALIGN_CENTRE)
        self.Videoconf_Panel = wx.Panel(self, -1)
        self.Photoshot_Label = wx.StaticText(self, -1, "Photo Snapshot", style=wx.ALIGN_CENTRE)
        self.Photoshot_Panel = wx.Panel(self, -1)
        # added for photosnapshot
        self.Capture_Label = wx.StaticText(self, -1, "25Mar2009 06:31:00", style=wx.ALIGN_CENTRE)
        # added for photosnapshot
        
        self.static_line_5 = wx.StaticLine(self, -1)
        self.IM_Label = wx.StaticText(self, -1, "Instant Messaging", style=wx.ALIGN_CENTRE)
        self.Remarks_Label = wx.StaticText(self, -1, "Remarks", style=wx.ALIGN_CENTRE)
        self.Remarks_Text = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER|wx.TE_MULTILINE)

        self.__set_properties()
        self.__do_layout()

        # added for photosnapshot
        # end wxGlade
	
	os.environ['SDL_VIDEODRIVER']='x11'
	os.environ['SDL_VIDEO_YUV_HWACCEL']='0'
        os.environ['SDL_WINDOWID']=str(self.Videoconf_Panel.GetHandle())
Пример #2
0
    def __init__(self, *args, **kwds):
        # begin wxGlade: MyPanel.__init__
        kwds["style"] = wx.TAB_TRAVERSAL
        wx.Panel.__init__(self, *args, **kwds)
	self.messenger = wxMessenger(RXBOX_JID, RXBOX_PWD, self, -1,)
	self.phone = Linphone(self)
        self.Videoconf_Label = wx.StaticText(self, -1, "Video Conference", style=wx.ALIGN_CENTRE)
        self.Videoconf_Panel = wx.Panel(self, -1)
        self.Photoshot_Label = wx.StaticText(self, -1, "Photo Snapshot", style=wx.ALIGN_CENTRE)
        self.Photoshot_Panel = wx.Panel(self, -1)
        # added for photosnapshot
        self.Capture_Button = wx.Button(self, -1, "CAPTURE!")
        self.camera = highgui.cvCreateCameraCapture(1)
        self.image_counter = 0
        # added for photosnapshot
        
        self.static_line_5 = wx.StaticLine(self, -1)
        self.IM_Label = wx.StaticText(self, -1, "Instant Messaging", style=wx.ALIGN_CENTRE)
        self.Remarks_Label = wx.StaticText(self, -1, "Remarks", style=wx.ALIGN_CENTRE)
        self.Remarks_Text = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_ENTER|wx.TE_MULTILINE)

        self.__set_properties()
        self.__do_layout()

        # added for photosnapshot
        self.Bind(wx.EVT_BUTTON, self.onCapture, self.Capture_Button)
        # end wxGlade
	
	os.environ['SDL_VIDEODRIVER']='x11'
	os.environ['SDL_VIDEO_YUV_HWACCEL']='0'
        os.environ['SDL_WINDOWID']=str(self.Videoconf_Panel.GetHandle())