How do you bind something like a listbox to an event, but keep that events default actions... ie when you bind a listbox to EVT_RIGHT_DOWN it overrides the SetSelection method that is normally called. I'm trying to call a popup menu on the right down event but I also want to normal SetSelection method to be called first... How do you bind without overriding the default methods?

Couldnt you just bind it to an event that called SetSelection before doing anything kinda like:

def method(self,event):
    self.richtext.SetSelection()
    #and then do all of your usual stuff here

I would but SetSelection requires an integer to indicate the list position you would like to set it to..

Whats the problem there? You could just set it to 1 or something like that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.