Events with pyKDE 0.8.

Peter Torstenson p.t at iname.com
Tue Aug 3 05:00:18 EDT 1999


I have defined an event as follows.

def mousePressEvent(self,e):
  if e.button()==ButtonState,RightButton:
    self.menu()

Now. this works fine on the mainwidget. But how do I define it to work with
a widget placed on the main widget. Ex, a label.
I have tried to find an explanation in the Qt-manual but with out luck.
There are no examples as far as I can see that illustrates this.

Very greatefull for help

/Peter Torstensson






More information about the Python-list mailing list