7/28/2024

PanelLib

Introduction

At the very beginning of EfiPy announcement, there is a demo program and introduction for EfiPy capability for graphics function. This program’s kernel is moved to be python library in Efi\StdLib\lib\python36.8\EfiPy2\Lib\PanelLib.py.

Example

Although this library structure is not beautiful enough, but multiple test example feature reused the class in PanelLib.py

from EfiPy2.Lib.PanelLib import EfiPyGfx, EfiPyFont, HintPrompt

And demo functions are divided into scripts. Here are these scripts description…

Efi\Apps\EfiPy2Sample\PanelGrid.py

It uses EfiPyGfx:: Rect() function to show small rectangle in screen.












Efi\Apps\EfiPy2Sample\PanelRuler.py

It uses EfiPyGfx() class to draw vertical and horizontal ruler.













Efi\Apps\EfiPy2Sample\PanelFont.py

It displays fonts with variable color in one screen.













Efi\Apps\EfiPy2Sample\PanelModeList.py

It uses GOP QueryMode() capsuled in EfiPyGfx class to lists available GOP mode.











Efi\Apps\EfiPy2Sample\PanelModeSet.py

It uses GOP SetMode() to set GOP mode number from GOP QueryMode().

No comments:

Post a Comment