ocxtest.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:remoteControlPPT 作者: htwenning 项目源码 文件源码
def GetTestVideoDialogClass():
    if GetTestVideoModule() is None:
        return None
    class TestVideoDialog(dialog.Dialog):
        def OnInitDialog(self):
            rc = dialog.Dialog.OnInitDialog(self)
            try:
                self.olectl = activex.MakeControlInstance(videoControlModule.ActiveMovie)
                self.olectl.CreateControl("", win32con.WS_TABSTOP | win32con.WS_VISIBLE, (7,43,500,300), self._obj_, 131)
            except win32ui.error:
                self.MessageBox("The Video Control could not be created")
                self.olectl = None
                self.EndDialog(win32con.IDCANCEL)
                return

            self.olectl.FileName = videoControlFileName
#           self.olectl.Run()
            return rc
        def OnOK(self):
            self.olectl.AboutBox()
    return TestVideoDialog

###############
#
# An OCX in an MDI Frame
#
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号