7 ms·
Awesome stuff! What are your future plans in this effort? Could you envision a (G)UI toolkit written in Python that could be used to write applications that ru
by niftich 10y ago
Awesome stuff! What are your future plans in this effort?
Could you envision a (G)UI toolkit written in Python that could be used to write applications that run in EFI?
- JoshTriplett 10y ago> Awesome stuff! What are your future plans in this effort? On a small scale, moving as much as possible from C to Python using ctypes. Much of the C code pre-dates us implementing ctypes support, so it provides bindings to things like ACPI via the Python C API. We'd like to re-write that using ctypes, which will result in far less C code and no manual management of things like reference counts of Python objects. On a larger scale, we're outgrowing GRUB's menu system. It's been incredibly helpful to get started, but we'd like a more usable and flexible UI than GRUB menus based on dynamically generated GRUB cfg files. (Several of the menus consist of lines like "source (python)/test.cfg", where "(python)" is an in-memory GRUB filesystem implemented in Python, and Python code enumerates the test hierarchy at boot time to generate test.cfg.) In particular, we'd like to be able to have simple UI elements to select one of a set of configuration options and display the current value directly in the menu. So yes, I can envision a UI toolkit written in Python. :)