views:

47

answers:

1

Hello, i have an application class inherited from QtGui.QDialog. I have to reload show-function but save functionality. I take this idea from C#. There i could do something like this:

static void show()
{
  // My code...
  base.show();
}

I want to do something like that but with python and qt (PyQt). Can i do that?

+1  A: 

Checkout the super() function but note some pitfalls.

cartman
Btw for Qt you can just do QClass.show(self) and it will call the base class.
cartman