Use f-strings
Avoid unnecessary casts to str()bool()int()
Ensure file closure
Merge nested ifs
Simplify for-assigns-appends with comprehensions and internal functions
Avoid shadowing internal function names
Initialize variables
Return value directly instead of assign then return
Make some methods static
Original panel by Mikko Gozalo
Modified layour to fit 16:9 screens
Auto-home
Ability to measure X and Y independently
Get the current active values not the values from the config
Ask for save
Other minor tweaks
close#301
Co-authored-by: alfrix <alfredomonclus@gmail.com>
Adds heater_generic and/or temp_sensors besides extruder/bed (because of the limited space maybe only 1)
Temps are now buttons and act as a shortcut to the temp panel
Adds fan_generic to the fan label and it's now a shortcut to the fan panel
The colors and size of the progress circle were changed to be more subtle.
Margins between items were augmented, because they are buttons now
Adds 3 information pages: move, extrusion and time:
move can be opened with speed or z buttons
time with elapsed/remaining buttons
extrusion with the extrude_factor / flowrate button
Screen:
* The no DPMS option should now protect from the first touch,
and it should provide a way for screens that turn all white/random colors/no-signal to just be all black
Zcalibrate:
* Add selector if multiple options can be used
* Go to the middle of the bed if position is not configured
* Add an option to set the custom position per printer
Fine_tune:
* Add reset button for each of the 3 options
Network:
* Add reload button
* Show hidden SSIDs as Hidden instead of x00
System:
* Add full update option to update all items at once
Mesh:
* Fix graph getting a bit out of screen in vertical mode
Menu:
* Use scrollbars when there are too many items
* Fix vertical mode not arranging items correctly
Move:
* Show ??? if not homed
* Hide originXY for delta kinematics
Splash:
* Change buttons to local commands if not connected to moonraker
* Fix issues with power button if klipper is not connected
Misc:
* Keyboard now works on all the entry boxes, you can press enter on them to confirm.
* If there is only 1 extruder, then the nozzle icon is shown instead of the number