Commit Graph
94 Commits
Author SHA1 Message Date
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 a44f8f7b13 job_status: fix issue with thumbnails in some resolutions 2022-07-19 11:39:13 -03:00
alfrix 3babd0e02c job_status: fix issue with layer height 2022-07-03 15:57:02 -03:00
alfrix d3cd4008a8 job_status and base_panel: safeguard against possible issues with temps 2022-07-03 12:03:50 -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 06fceec84a Change the deprecated VBox and HBox to oriented Boxes 2022-07-03 12:03:50 -03:00
Adam Shanks 61c5bea9a0 Superscript (#635)
* Use superscript 2 and 3 as appropriate
2022-06-05 09:55:52 -03:00
alfrix 7b4a24d079 job_status: simplify timeouts because sometimes it didn't work, also do not autoclose by default because there may be offsets to be saved 2022-05-31 11:14:42 -03:00
alfrix 5a36729b76 PEP8, typos and warnings fixes 2022-05-31 11:14:42 -03:00
alfrix 4ff63798c8 job_status: ask for confirmation, and show saved offset 2022-05-31 11:14:42 -03:00
alfrix b77b7c0976 job_status: M117 without text clears the label fix #614 2022-05-31 11:14:42 -03:00
alfrix b9036901e7 job_status: animate filename if it's too long 2022-05-31 11:14:42 -03:00
alfrix 8accce00a9 job_status: fix thumbnail issue #608 2022-05-04 09:56:24 -03:00
alfrix 35c4136bd5 Job_status: fix speed label, fix estimate default 2022-05-02 12:09:12 -03:00
Alfredo Monclus 31546f0020 Improve Job status (#592)
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
2022-05-01 12:22:58 -03:00
alfrix b42043bc79 job_status fix issue with delta printers fixes #587 2022-04-13 20:06:02 -03:00
alfrix 583397ebeb job_status: add save z button to save babystepping 2022-04-06 08:20:22 -03:00
alfrix c33659c6f7 gtk: cleanup andoptimize image handling, incomplete themes should now work 2022-04-02 09:59:12 -03:00
alfrix ffaad4daf7 fine_tune and job_status: fix rounding error 2022-03-22 13:37:06 -03:00
Alfredo Monclus a893f47604 Show fan speed according to max_power and off_below (#543)
fixes #444
2022-03-15 12:41:47 -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 b1dd83d955 job_status: rework time calculation
New 'Auto' setting that selects the best guess
added an slicer time compensation if you find that your slicer always under/over estimates by some amount
Split in days if the time is more than 24h
2022-03-10 11:43:53 -03:00
alfrix b379363cf2 job_status: calculate progress with higher precision 2022-03-08 22:01:53 -03:00
alfrix ebfe0debb8 job_status: Set cancelled state earlier, and fix status label 2022-02-28 19:57:56 -03:00
Alfredo Monclus dd027c0583 Vertical mode (#480) 2022-02-24 16:00:51 -03:00
alfrix 5c23946283 Job_status: Fix issue with standby state that prevented closing 2022-02-04 14:18:11 -03:00
alfrix ffb62f149c Job_status: revert close_panel changes 2022-02-04 10:49:12 -03:00
alfrix e1877f2c2e Job_status: call state_check just before trying to close the panel
This shouldn't be needed but it's a reasonable safeguard
2022-02-04 09:34:05 -03:00
alfrix d5ab606509 Job_status: Fix not loading without display_status (needed for M117) 2022-02-04 09:28:11 -03:00
alfrix da7667e64e Job_status: Prevent the panel from closing itself when a print is in progress 2022-02-03 15:52:01 -03:00
alfrix 5384c59689 Job_status: Fix issues when the panel is not active
If the print finishes (or the user cancelled) while KS is in another panel, job_status was broken with no buttons, no filename, wrong progress and  wrong status, this fixes all those issues, and removes some redundant checks
2022-02-03 11:47:52 -03:00
alfrix 07aa6bb7f7 Job_status: wrap long error messages 2022-01-22 09:36:50 -03:00
alfrix 8e8e23de0f Job_status: Fix not changing state if a print is issued during cancelling 2022-01-22 09:06:33 -03:00
alfrix de0b6ea435 Job_status: Fix thumbnail and metadata not updating after a cancel and re-upload 2022-01-22 09:06:33 -03:00
Alfredo Monclus e1e3437d62 Relax timers for CPU efficiency (#439) 2022-01-13 11:05:34 -05:00
Jordan 969b47f425 job_status: Tweaks to state changes 2021-10-01 19:48:03 -04:00
Alfredo Monclus 5e3e8be005 Styling updates (#279)
* Dialog buttons colors

* Zcalibrate add colors for buttons

* Fix move panel misalignment and add color to home button

* z-bolt switch styling

* Splash screen homogeneous buttons

* remove switch slider border

* Remove max chars from filename (ellipsizes anyway)

* Fix colorized buttons moving when pressed

* Updater more row spacing

* Colorized button press
2021-09-22 23:14:21 -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 7bf7a54540 Ellipsize Job_status Filename and LCD message (#238) 2021-08-27 22:06:03 -04:00
Alfredo MonclusandJordan 41e917bc41 Wake the screen at print start and end (#229)
* Wake the screen at print start and end

* job_status: Wake screen on re-print

Co-authored-by: Jordan <jordan.ruthe@gmail.com>
2021-08-19 21:07:24 -04:00
Alfredo Monclus 642385eead Strip .gcode from name in job_status (#231) 2021-08-19 20:45:28 -04:00
Alfredo Monclus bcad2a9a78 job_status: more space for info (#193) 2021-06-26 12:21:56 -04:00
Alfredo Monclus b4064c6b9e job_status: fix cancel print label position (#194) 2021-06-26 12:21:40 -04:00
Jordan Ruthe dcac0012c9 job_status: Log filesize. Add cancelling to ignore states for new print 2021-05-20 18:50:49 -04:00
Jordan Ruthe a06ae084db job_status: Cancel/Resume button corrections 2021-05-20 00:30:38 -04:00
Alfredo Monclus e75a10a888 New Style - Solarized (#144)
* New Style solarized
2021-05-10 20:55:15 -04:00
Alexander Spassky 9951323e91 M117 messages display (#150)
* Added displaying M117 messages under printer state label on JobStatus panel
2021-05-10 19:46:07 -04:00