sliderdemo.py 文件源码

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

项目:remoteControlPPT 作者: htwenning 项目源码 文件源码
def OnInitDialog(self):
        rc = dialog.Dialog.OnInitDialog(self)
        # now initialise your controls that you want to create
        # programmatically, including those which are OLE controls
        # those created directly by win32ui.Create*
        # and your "custom controls" which are subclasses/whatever
        win32ui.EnableControlContainer()
        self.slider = win32ui.CreateSliderCtrl( )
        self.slider.CreateWindow( win32con.WS_TABSTOP | win32con.WS_VISIBLE,
                                  (0,0,100,30),
                                  self._obj_,
                                  self.IDC_SLIDER)
        self.HookMessage(self.OnSliderMove, win32con.WM_HSCROLL)
        return rc
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号