19 Commits

Author SHA1 Message Date
alfrix
cd51faee30 retraction panel: remove old re parsing of responses, it has not been necessary for some time 2024-02-12 06:42:34 -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
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
alfrix
511f715f7e retraction: allow higher limits fix #630 2022-06-03 14:39:15 -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
8550cbcab6 retraction: add reset 2022-05-31 11:14:42 -03:00
alfrix
8ba28fde1c Add firmware retraction panel close #101
Co-authored-by: tonywright
2022-04-11 23:04:29 -03:00