When you close the Python console by clicking on the x, the "check" next to the View --> Python Console item does not get updated (so is then out of sync until you do the same thing a second time). (Using the "py" shortcut works ok.)
Fixed this immediate problem. You ave to be able to trigger the menu action when the x is hit. This does not work if the python console is popped out. The relevant function, Module._closeModule is not called. It is set up Module.py via the following line in the constructor:
This is something to do with the PyQtGraph implementation.
Note that selecting the menu explicitly or using the shortcut "py" also does not work properly. The checkbutton in the menu item is correct, but the dock itself is left visible (but no python console inside it).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Fixed this immediate problem. You ave to be able to trigger the menu action when the x is hit. This does not work if the python console is popped out. The relevant function, Module._closeModule is not called. It is set up Module.py via the following line in the constructor:
self.label.closeButton.clicked.connect(self._closeModule)
This is something to do with the PyQtGraph implementation.
Note that selecting the menu explicitly or using the shortcut "py" also does not work properly. The checkbutton in the menu item is correct, but the dock itself is left visible (but no python console inside it).