hasii2011 / albow-python-3

Albow running on Python 3.x
MIT License
9 stars 0 forks source link

Fix too many parameters TODO in TitledDialog #58

Open hasii2011 opened 5 years ago

hasii2011 commented 5 years ago
    def __init__(self, title: str = 'Default Title', message: str = '',
                 okTxt: str = 'Ok', cancelTxt: str = 'Cancel', thirdButtTxt: str = None,
                 client=None, wrapWidth: int = 100, **kwds):
        """
        The dialog reports which button was pressed with the text of the button.
        TODO:  This constructor has way too many parameters;  Dude, simplify the parameter list;     Perhaps, use the kwds dictionary