it's a Problem of basic OOP understanding i guess. but: Instead of
class MyWidget(QtGui.QWidget):
    def __init__(self):
        """
        Parameters
        ----------
        """
        QtGui.QWidget.__init__(self)
        button = QtGui.QPushButton(self)
        ...
I want my customized Button, inherited like:
class MyButton(QtGui.QPushButton):
    def __init__(self):
    ...
So, i can use it instead:
class MyWidget(QtGui.QWidget):
    def __init__(self):
        """
        Parameters
        ----------
        """
        QtGui.QWidget.__init__(self)
        button = MyButton(self)
        ...
The Problem is, that i don't know how i can make the button being an Object of the Widget, since i can't pass in the widget itself? Thanks in Advance
 
    