Commit Graph
54 Commits
Author SHA1 Message Date
alfrix 5234a5dc15 main_menu: don't show the graph if there are no available devices 2022-08-01 12:23:40 -03:00
alfrix f9e6ac62b7 main menu and temp cleanups and tweaks 2022-08-01 12:23:40 -03:00
alfrix 6510b2ec6b Refactor
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
2022-08-01 12:23:40 -03:00
alfrix e70c9d37e9 layout: fixes for long vertical screens
KS is not optimized for this aspect-ratio, but at least it shouldn't be broken
2022-07-04 16:23:21 -03:00
alfrix f97bed826b style: deprecate active_device class 2022-07-04 13:46:04 -03:00
alfrix 5ad82a64d4 Translations: install _() 2022-07-03 12:03:50 -03:00
alfrix b611491997 Optimize imports 2022-07-03 12:03:50 -03:00
alfrix 06fceec84a Change the deprecated VBox and HBox to oriented Boxes 2022-07-03 12:03:50 -03:00
alfrix a445b89f13 config: deprecate get_main_config_option 2022-07-03 12:03:50 -03:00
alfrix 33195f203f Simplify code 2022-05-31 11:14:42 -03:00
alfrix 5a36729b76 PEP8, typos and warnings fixes 2022-05-31 11:14:42 -03:00
alfrix e09d72f12d main and temp: fix same color for heater_generics and sensors 2022-04-02 14:29:31 -03:00
alfrix ab38dab291 style: add heater_generic icon 2022-04-02 14:29:31 -03:00
alfrix c33659c6f7 gtk: cleanup andoptimize image handling, incomplete themes should now work 2022-04-02 09:59:12 -03:00
alfrix 53c7afd7a5 Use extruder icon without number if there is only 1 2022-03-30 22:58:37 -03:00
alfrix 2e16193292 menu: fix portrait issues 2022-03-25 13:41:22 -03:00
alfrix 4899701ae3 Update translations 2022-03-20 10:21:34 -03:00
alfrix 0d259d6d04 main_menu and temp: reduce load
Drawing the graph has a high load impact, reduce the interval of redraw
if the user needs instantaneous values, then the list provides it,
the graph is there to provide historical data of behaviour not instantaneous values.

-------- | Load | Note
idle     | 0.3  | screensaver
menu     | 0.4  | No process update
extrude  | 0.6  | updates temp
graph 5s | 0.8  |
graph 1s | 1.2  |

the load is the 15 min mean after about half an hour
Tests carried out on a Pi3A
2022-03-19 14:47:59 -03:00
alfrix ee0cc9ca10 Remove unused variables 2022-03-15 12:41:21 -03:00
alfrix 5899c8feab Optimize imports 2022-03-15 12:41:21 -03:00
Alfredo Monclus 6ce0ea7253 graph: various fixes (#539)
fix axis sizes for high resolutions (tie to font_size)
fix update interval sometimes being faster (fix printer timer)
fix new device added causing horizontal line (use min not max)
2022-03-13 12:10:42 -03:00
Alfredo Monclus dd027c0583 Vertical mode (#480) 2022-02-24 16:00:51 -03:00
alfrix 21be9df72e Main_menu: fix graph colors when switching printers 2022-02-23 23:14:46 -03:00
alfrix de35769600 Temp_panel: Fix issue with temperature_fan #495
Since temperature_fan has a target, it needs to be in the list to properly work
2022-02-08 13:45:46 -03:00
alfrix 8375606771 Make Main_menu and Temp_panel look equal 2022-02-05 12:17:12 -03:00
Kmarty 0e3027638f Fix issue trying to set temperature from main_menu (#457)
'KlippyGcodes' has no attribute 'MAX_EXT_TEMP" by syncing (duplicit)
function change_target_temp() with 'panels/temperature.py'
2022-01-21 16:24:41 -03:00
Jordan 9660172e0b Enable startup with #360 to not error 2021-12-10 21:13:18 -05:00
Jordan d21e9cbfaa Main menu hide 'set temp' for devices that don't have a heater. 2021-12-07 21:05:17 -05:00
Jordan c3103d3b11 Fix graph error and make colors configurable 2021-12-07 21:05:17 -05:00
Jordan dd56d192cc Create keypad widget and include set temp on the main menu 2021-12-07 21:05:17 -05:00
Jordan e26e4006d6 Move graph location 2021-12-07 21:05:17 -05:00
Jordan fdf81ecf06 graph: Add ability to hide/show sensors. 2021-12-07 21:05:17 -05:00
Alfredo Monclus ac3bde654a tweaks (#291) 2021-12-07 21:05:17 -05:00
Jordan 139115a0e9 Updates to graphing.
Modify heaters to show only ones available in the temp store. Add 
ability to hide/show heaters.
2021-12-07 21:05:17 -05:00
Jordan 5bfcd0108a Adding graph capability to main menu 2021-12-07 21:05:17 -05:00
Jordan 54c47554d2 Change how panel subscriptions work 2021-09-16 21:54:51 -04:00
Jordan 70d8315539 Update code style 2021-09-11 17:25:38 -04:00
Jordan Ruthe c0b4b464bd Changes to logging implementation 2021-02-21 12:19:30 -05:00
Jordan Ruthe 56731e77f6 main_menu: Show all heaters 2021-02-19 15:05:12 -05:00
Jordan Ruthe 49f7cf0e46 main_menu: Show printer name in main_menu 2021-02-15 14:52:09 -05:00
Jordan Ruthe a087ecfa30 menu/main_menu: Better RTL support 2021-01-08 19:02:49 -05:00
Jordan Ruthe b57cbc8352 Language support for RTL and he_IL 2021-01-03 16:04:26 -05:00
Jordan 9d89311bcc updates to several panels to account for a lack of heater_bed 2020-12-28 17:08:17 -05:00
Jordan e2a0f86f45 panels: Add extruder-0 image so that panels align to the T0/T1.. command 2020-12-21 09:57:42 -05:00
jordanruthe 238badb110 UI scaling (#28)
* Initial UI scaling commit

* temperature: updates to styling

* screen: fix dialog creation

* bed_level: scale images

* job_status: updates to scaling
2020-12-07 15:44:03 -05:00
Jordan Ruthe 25b89cb7e9 menu: refactor adding items to menu so they can be dynamically added/rmeoved. 2020-12-04 14:03:14 -05:00
Jordan Ruthe 728f9cfa0f screen/panels: add action to process update 2020-11-28 13:52:03 -05:00
Jordan Ruthe 8204e3ab17 Dynamically load panels 2020-11-23 21:00:04 -05:00
jordanruthe 3b62439939 Move files to ks_includes and update references 2020-11-18 17:15:05 -05:00
Jordan Ruthe 557dd86364 Fix CR line end problem 2020-11-18 10:46:57 -05:00