wxpython事件处理evt列表

wxpython事件处理evt列表

python中evt处理,可以使用bind将事件触发,绑定至控件,并提供事件处理函数
其evt列表可参考/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode下的*.py文件。*.py文件内有相关的控件列表。

例如:
listctrl控件列表事件处理
选中listctrl一行,触发listctrl控件事件wx.EVT_LIST_ITEM_ACTIVATED。

这时,可以使用bind,将listctrl控件事件,与事件处理函数绑定,就可以实现当鼠标,或则光标选中listctrl行时,处理相关的事件。

Share and Enjoy:
  • Print this article!
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • RSS
  • Slashdot
  • Technorati
  • TwitThis

No related posts.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Contact us

Admin: Bryan Wu