I know that Python allows multiple inheritance, but I never used it, partly because I consider this as a pretty bad practice.
However, I'm making a GUI and got the following idea...
In this example it is a chess GUI : there is a Board
class for the business aspects, a Canvas
class which is a tkinter graphical object (but it could be anything else with business classes separated from the graphical ones).
Is it a good idea to make the board graphical object inherit from these two classes ?
class BoardGui(Canvas, Board) :
...
My research before asking this question brought me to the Mixin concept, but I'm not sure if it is applicable in this case.
PS : I'm new in stack overflow, feel free to edit my question if necessary, or to send me any feedback, for instance if you think that I'm getting too precise, or too much philosophical, or...