Commit Graph
32 Commits
Author SHA1 Message Date
Alfredo Monclus 2d2e80c3fd panels: allow to call them without name 2024-06-04 11:16:50 -03:00
alfrix 0441b5bd8e limits: fix panel not loading if minimum_cruise_ratio wasnt defined 2024-04-03 13:50:00 -03:00
alfrix 9e42576bb2 limits: fix issue that made scales to not show the correct value if it was significantly changed from an external source, this also fixes the little jump the scales suffered on update 2024-04-02 19:49:35 -03:00
alfrix b7cbbee4d1 limits: change to minimum cruise ratio 2024-04-02 19:25:16 -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 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 25797b5ed3 remove frames from lists 2022-11-28 00:15:28 -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 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
alfrix b988c3c8c9 limits: fix sliders rescaling and not restoring values when set lower than the max configured value 2022-10-27 12:15:18 -03:00
alfrix 4076e6349a limits and retraction: infinite sliders 2022-10-14 10:19:44 -03:00
alfrix 38ceea5204 gtk: improve wrapping of labels 2022-09-02 19:58:35 -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 5ad82a64d4 Translations: install _() 2022-07-03 12:03:50 -03:00
alfrix b611491997 Optimize imports 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 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 ade8911ba6 limits: add reset, allow to set above the configured maximum but turn the slider red 2022-05-31 11:14:42 -03:00
alfrix 35381beeb6 limits: fix typo in label 2022-05-03 08:38:58 -03:00
alfrix 430284b7a1 limits: add units 2022-04-11 23:32:07 -03:00
alfrix 3a91ba4604 style: set minimum height for distbuttons and simplify border removal 2022-03-25 09:57:11 -03:00
alfrix 5899c8feab Optimize imports 2022-03-15 12:41:21 -03:00
Randell Hodges 926773f4f3 Apply slider value on release (#430)
Scale will do the action when released instead of many times for every step while sliding.
2022-02-13 16:15:39 -03:00
Jordan 4b0b937c41 Change scrolling behavior to enable touch scroll. Fix #466 2022-01-22 15:30:02 -05:00
Bertrand Lemasle 7b904fec79 Fixed typo in limits,py (#283) 2021-09-22 18:10:03 -04:00
Jordan 0c35e58308 limits: Fixes to limit 2021-09-19 00:08:36 -04:00
Jordan 414ac3f211 limits: Fix issue with square_corner_velocity possibly being a decimal 2021-09-18 10:09:58 -04:00
Jordan d7b8f4f1ed Add printer limits panel 2021-09-16 22:56:58 -04:00