码迷,mamicode.com
首页 > 编程语言 > 详细

wxpython 设置鼠标样式

时间:2017-04-05 22:06:38      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:样式   div   tool   nbsp   set   鼠标指针   size   simple   etc   

鼠标指针被设置为放大镜样式。可用的鼠标指针样式有:
wx.CURSOR_ARROW
wx.CURSOR_RIGHT_ARROW
wx.CURSOR_BLANK
wx.CURSOR_BULLSEYE
wx.CURSOR_CHAR
wx.CURSOR_CROSS
wx.CURSOR_HAND
wx.CURSOR_IBEAM
wx.CURSOR_LEFT_BUTTON
wx.CURSOR_MAGNIFIER
wx.CURSOR_MIDDLE_BUTTON
wx.CURSOR_NO_ENTRY
wx.CURSOR_PAINT_BRUSH
wx.CURSOR_PENCIL
wx.CURSOR_POINT_LEFT
wx.CURSOR_POINT_RIGHT
wx.CURSOR_QUESTION_ARROW
wx.CURSOR_RIGHT_BUTTON
wx.CURSOR_SIZENESW
wx.CURSOR_SIZENS
wx.CURSOR_SIZENWSE
wx.CURSOR_SIZEWE
wx.CURSOR_SIZING
wx.CURSOR_SPRAYCAN
wx.CURSOR_WAIT
wx.CURSOR_WATCH
wx.CURSOR_ARROWWAIT
 
例子:
import wx  
app = wx.PySimpleApp()  
frame = wx.Frame( None, -1, ‘‘ )  
frame.SetToolTip( wx.ToolTip( ‘This is a frame‘ ) )  
frame.SetCursor( wx.StockCursor( wx.CURSOR_MAGNIFIER ) )  
frame.SetPosition( wx.Point( 0, 0 ) )  
frame.SetSize( wx.Size( 300, 250 ) )  
frame.SetTitle( ‘simple2.py‘ )  
frame.Show()  
app.MainLoop()  

  

 

 

wxpython 设置鼠标样式

标签:样式   div   tool   nbsp   set   鼠标指针   size   simple   etc   

原文地址:http://www.cnblogs.com/wangjian8888/p/6670470.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!