【问题标题】:What is the DRAG mouse stock cursor ID, wxpython?DRAG mouse stock cursor ID, wxpython 是什么?
【发布时间】:2011-11-23 22:49:41
【问题描述】:

我浏览了 wxpython 网站,但我不相信它有用于拖动的股票光标 ID。

这是光标的图像: http://helpcentral.componentone.com/nethelp/truedbgrid8/ImagesExt/image19_31.gif

谢谢

【问题讨论】:

    标签: python wxpython


    【解决方案1】:

    光标可用性取决于操作系统。在 Windows 中,没有一个available cursor 图像与您想要的图像相对应。您可以使用 wxPython 演示来检查它是否适合您的操作系统(演示 -> 使用图像 -> 光标),但显然没有光标名称有希望,例如 wx.DRAG_CURSOR。

    但是,使用wx.Cursorwx.CursorfromImage 很容易获得自定义光标,如Driscoll blog 中的示例所示。

    myCursor = wx.Cursor(img_path, cursor_type)
    self.SetCursor(myCursor)
    

    【讨论】:

      猜你喜欢
      • 2013-02-08
      • 1970-01-01
      • 2011-01-16
      • 2015-03-04
      • 1970-01-01
      • 2013-05-10
      • 1970-01-01
      • 1970-01-01
      • 2010-12-01
      相关资源
      最近更新 更多