51 Commits

Author SHA1 Message Date
alfrix
0fd8f90943 fine_tune: fix #1277 2024-02-18 16:17:05 -03:00
alfrix
d1168b5405 themes: get rid of the unused vertical selector buttons, simplify and rename the horizontal toggle strip 2024-01-10 23:30:39 -03:00
alfrix
05cd9a6d34 remove fallback values
with an empty string re will not match
2024-01-07 17:27:59 -03:00
alfrix
6cf639c083 refactor widget creation
improves performance and makes the code cleaner

* add parameters instead of calling methods afterwards
* remove a a lot of size requests
* remove parameters that are being set to the default value
* simplify dialogs containers
2024-01-02 08:14:51 -03:00
alfrix
90fc3288d7 Use callbacks to disable and enable buttons to improve user feedback
buttons now show a spinner if watiting for callback
2023-08-18 11:48:37 -03:00
alfrix
8d9236a2df screen: simplify panel loading
this removes create_panel function from panels and mandates a class name Panel

remove panel_type param and only use a panel_name that is it's filename

remove load_panel dict

always reinit panel, (simpler and safer but slower)
2023-07-30 12:22:58 -03:00
alfrix
87ad2a70ba fine_tune: split speed and flow selectors close #935 2023-07-30 12:22:58 -03:00
alfrix
a149796b19 reduce the use of contextlib 2023-07-30 12:22:58 -03:00
alfrix
d775e15fa0 add extra digit for z_offset close #943 2023-04-02 09:29:00 -06:00
alfrix
b1a6d5c182 improve panel initialization
just make a notify_status_update from printer data, it's much simpler
2022-11-30 11:00:10 -03:00
alfrix
a61a74d7bf initialize with values some panels 2022-11-26 16:46:33 -03:00
alfrix
593d8c678b gtk: merge buttonimage and button 2022-11-22 14:55:42 -03:00
alfrix
717575256c update translations remove some unnecesary strings use 2 letter designation unless needed 2022-11-22 14:55:42 -03:00
alfrix
d0d79a64df base_panel: simplify action bar buttons enable-disable 2022-11-21 09:20:05 -03:00
alfrix
dbd1474d63 screen_panel: share ks_printer_cfg between panels 2022-11-20 14:17:48 -03:00
alfrix
fc0f153023 reorder imports 2022-11-20 07:28:05 -03:00
alfrix
45ab86204b panels: remove initialize from the panels that do not have a menu 2022-11-18 00:53:53 -03:00
northcoastam
d27227aede
Update fine_tune.py (#765)
Fix for custom z_babystep_values from KlipperScreen.conf not respected
2022-10-27 23:15:45 -03:00
alfrix
723662074e Change togglebuttons to regular buttons to simplify code 2022-10-14 10:19:44 -03:00
alfrix
c2991364ba fine-tune: fix PEP8 E303 2022-10-01 12:35:01 -03:00
alfrix
2224478ea0 fine-tune: change the labels as soon as the button was pressed, this should give better feedback when the change is delayed by klipper 2022-10-01 12:32:28 -03:00
alfrix
38ceea5204 gtk: improve wrapping of labels 2022-09-02 19:58:35 -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
5ad82a64d4 Translations: install _() 2022-07-03 12:03:50 -03:00
alfrix
831db2403d Fix potential issues with variables 2022-07-03 12:03:50 -03:00
alfrix
5a36729b76 PEP8, typos and warnings fixes 2022-05-31 11:14:42 -03:00
alfrix
8ad21ab7cb zcalibrate: fix vertical mode not working fixes #576 2022-04-11 23:24:15 -03:00
alfrix
c33659c6f7 gtk: cleanup andoptimize image handling, incomplete themes should now work 2022-04-02 09:59:12 -03:00
alfrix
9dc8335a07 fine_tune: add reset button, do not set babystepping prior to homing, reorganize a bit 2022-03-25 14:06:07 -03:00
alfrix
ffaad4daf7 fine_tune and job_status: fix rounding error 2022-03-22 13:37:06 -03:00
alfrix
5899c8feab Optimize imports 2022-03-15 12:41:21 -03:00
Alfredo Monclus
dd027c0583
Vertical mode (#480) 2022-02-24 16:00:51 -03:00
Jordan
3053502a32 fine_tune: Fix issue with wrong babystep interval selected. 2021-10-01 19:02:51 -04: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
Alfredo Monclus
e75a10a888
New Style - Solarized (#144)
* New Style solarized
2021-05-10 20:55:15 -04:00
Jordan Ruthe
3f2ed97385 fine_tune: Allow z babystep intervals to be configured 2021-02-22 11:10:19 -05:00
Jordan Ruthe
c0b4b464bd Changes to logging implementation 2021-02-21 12:19:30 -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
46410f797a fine_tune: Remove fan from fine tune panel. Add fan to print menu 2020-12-04 14:20:31 -05:00
Jordan Ruthe
a724836378 fine_tune: remove unused code 2020-12-04 14:04:09 -05:00
Jordan Ruthe
08a7057668 Change panel layout. Add title and move back button 2020-12-02 14:35:28 -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
7db6a541f2 all: Update to enable language files 2020-11-18 07:49:12 -05:00
vacapetr
85a2ba116c
Adjust fine tune panel for lower resolution (#16)
* Update print.py

* Update KlipperScreen.config

adding the HOME XY button

* Update KlipperScreen.config

* adjust the display for a lower resolution/800x480/

string shortening / long string caused the display to shift at a lower resolution. (panel job_status )

* adjust the display for a lower resolution/800x480/

string shortening / long string caused the display to shift at a lower resolution. (panel fine_tune )

Co-authored-by: jordanruthe <31575189+jordanruthe@users.noreply.github.com>
2020-11-18 04:36:28 -05:00
Jordan Ruthe
8733292dc3 Fixing key not found error 2020-11-16 00:17:51 -05:00
Jordan Ruthe
934b2dc639 Make fine tuning buttons work 2020-11-13 20:55:40 -05:00
Jordan Ruthe
59c8f8b19e Updates to work with the latest version of moonraker 2020-10-04 16:31:58 -04:00