68 Commits

Author SHA1 Message Date
Alfredo Monclus
14a02e5bcf
widgets: create autogrid: a custom grid that arranges itself (#1307) 2024-03-20 23:14:43 -03:00
Alfredo Monclus
5b7da9a9b8
extrude: add an extruder selector for machines with more than 5 extruders (#1249)
makes the extrude panel support more extruders (unlimited, but icons from 0-11)
close #1195
2024-01-25 22:53:16 -03:00
alfrix
81e76b1815 extrude: fix activate may not enable buttons 2024-01-15 14:42:10 -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
6f32cdacbe layout: fix issues 2023-10-13 23:24:03 -03:00
alfrix
e01b6e5f26 macros: hide the panel if there are no elegible macros 2023-08-31 22:27:12 -03:00
alfrix
f3c2736f9f refactor temp updates for devices fix extruder_stepper icon error 2023-08-26 13:05:44 -03:00
Blonďák
af1de12f28
Spoolman support close #1060
Refactor post_requrest
Switching to TreeView
More spool info
redesign toggle buttons
Allow spoolman while printing
Styling checkbox as switch
render Toggle switch-like
Fixed wrong timezones
Filtering spools
Removed translations of Spoolman
Spool image can be overided in theme
Added switch-on/off symbols to toggle
rename iter to i to avoid shadowing built-in function
remove redundant parenthesis
convert spoolcompare to static
merge check and treeview shared props
reduce spacing of buttons very useful for vertical/portrait
fix issue with remainings
add spoolman shortcut to extrude
Using backports.zoneinfo for python < 3.9
use decorators for properties
extract format_date function
change top row
last used sort
rebase on upstream
Fix for never used spools


Co-authored-by: alfrix <alfredomonclus@gmail.com>
2023-08-19 18:43:45 -03:00
alfrix
e3cbc1ea8c extrude: show during printing but disable buttons during printing, this allows disabling and checking the filament sensor 2023-08-18 11:48:37 -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
e7b58edfbf klippygcodes: simplify and remove some alias that are irrelevant 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
Chad Condon
e8a2d3443e
Improve name presentation (#1055)
* Preserve manual capitalization

Avoid re-capitalizing names that already include uppercase letters.
This improves the presentation of names like "TMC2209", etc. when the
user has manually capitalized the name.

* Use title case

Use title case instead of only capitalizing the first character.
Ex. `heater_bed` now becomes "Heater Bed" instead of "Heater bed".
2023-07-24 17:00:12 -03:00
alfrix
797ea99f33 extrude: change style to hexpand 2023-07-08 17:09:05 -03:00
alfrix
ffc5ff3c06 extrude: do not call T0 if there is only one extruder 2023-07-07 23:48:37 -03:00
alfrix
70d7564a78 shorten _screen.printer to _printer 2022-12-11 09:17:18 -03:00
alfrix
7120c424d4 gtk: resizability
doesn't rescale the fonts or images
2022-12-11 09:17:18 -03:00
alfrix
4dceeb77b6 extrude: fix filament sensor showing status when disabled
alongside the initialization fixes this should be enough to close #825
2022-11-30 11:00:10 -03: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
f8cde7bfe1 Add busy state, and disable buttons that usually take time during the state 2022-11-26 00:17:30 -03:00
alfrix
33fd5f9576 fix extrude speed buttons with no labels after 593d8c678be 2022-11-22 15:21:14 -03:00
alfrix
593d8c678b gtk: merge buttonimage and button 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
marcin-koziol
1dc3433e02
Set distance and speed variables after config is loaded (#782)
Co-authored-by: Marcin Kozioł <marcin.koziol@outi.pl>
2022-11-08 17:32:54 -03:00
alfrix
723662074e Change togglebuttons to regular buttons to simplify code 2022-10-14 10:19:44 -03:00
alfrix
2e026aef56 extrude: make the speed and distance configurable close #673 2022-10-14 10:19:44 -03:00
Laurenz
2cce477e5b
Add current heater power % to job status (#708)
* Add current heater power % to job status

* Add show_heater_power config option and move update_temp()s to ScreenPanel

* Add the option to the UI config instead of the docs

* Prefer extra items on job_status over the power

There is not a lot of space, it's a trade off, and people will likely prefer extra_items

* Remove the comma, none of the other buttons have it

* job_status: inherit the parent config

* screen: create reload_panels to avoid some service restarts

* extrude: fix power breaking multi-extruder setups

* main and temp: remove degrees char from the table

* main and temp: revert removal of the header

Co-authored-by: alfrix <alfredomonclus@gmail.com>
2022-09-09 11:34:50 -03:00
alfrix
eb17bb58ad screen_panel: remove unused parameters 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
784253ca77 extrude: use macro naming when there is no temp 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
5a02ac75ae basic support for extruder_stepper 2022-07-03 12:03:50 -03:00
alfrix
3775dbd44e extruder: fix issue with filament_sensors fixes #634 2022-06-04 11:43:52 -03:00
alfrix
5a36729b76 PEP8, typos and warnings fixes 2022-05-31 11:14:42 -03:00
alfrix
7c8d4ea4d7 extrude: add filament sensor support 2022-05-31 11:14:42 -03:00
alfrix
6aa7f56231 extruder: fix temp overlap multi-extruder 2022-04-25 13:33:20 -03:00
alfrix
53c7afd7a5 Use extruder icon without number if there is only 1 2022-03-30 22:58:37 -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
alfrix
aad665e3ca Extrude: visibly change load/unload if they are not found 2022-01-30 21:06:04 -03:00
Alfredo Monclus
8dd5c64006
Extrude panel: Support 5 extruders (#441) 2022-01-17 01:13:16 -05:00
Christian Kvasny
0b9d545c6f
add speed as parameter to UN/LOAD_FILAMENT macro (#359)
* Configurable xy position for z-calibrate added

* fix coding style

* Z probe calibrate option added

* add speed as parameter for UN/LOAD_FILAMENT macro

* add macros.md to docs

* update description

* change macros-md
fix format

Co-authored-by: jordanruthe <31575189+jordanruthe@users.noreply.github.com>
2021-12-18 09:38:33 -05:00
Alfredo Monclus
d9171e0d15
Always show Load/Unload buttons (#363)
But give the user an error if the Macro is missing
2021-12-17 12:43:25 -05:00
Jordan
54c47554d2 Change how panel subscriptions work 2021-09-16 21:54:51 -04:00