#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Location
    Bimingham,AL
    Posts
    68
    Rep Power
    11

    extending event class in wxpython


    Can somebody give me an example on how to extend wxevent(wxpyevent) class in wxpython.
    To have my own custom event for my custom widget.
    I have a sub-classed wxtreectrl but i want to create an event when a
    node is added to my class . But i dont seem to understand how to do
    that. I want to create my own NODE_ADDED event which would be handled
    by main frame which creates an instance of my treectrl.


    Any help would be greatly appreciated , as always
  2. #2
  3. Mini me.
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2003
    Location
    Cambridge, UK
    Posts
    783
    Rep Power
    14
    Hi,

    The wxPython Wiki looks to have exactly what you want:
    http://wiki.wxpython.org/index.cgi/CustomEventClasses

    grim

    Comments on this post

    • wx_uab agrees : Thanks Thats exactly what i want ( dont know how i missed that on the wiki)

IMN logo majestic logo threadwatch logo seochat tools logo