Wiki
Clone wikiFlatCAM / toggle_plot_with_space
Toggle Object Plot using SPACE Key in Project Panel
This document describes a small GUI enhancement to make it easy for user to toggle object visibility.
Usage
Currently, in order to toggle the visibility of individual object, the user must first select the object in Project panel, then go to Selected panel, and finally click the Plot check box. This GUI enhancement simply allows user to select the object in Project and press the Space key to toggle the visibility of the selected object. The Space key is only effective when the Project panel is in focus.
Implementation
toggle()
function is added to class FCCheckBox
for easy check box toggling. Handling of SPACE
key is added to ObjectCollection.on_key()
, which simply calls the toggle()
function of the Plot check box of the selected object ui
.
Updated