Uncategorized

Notes of Get your resources faster, with importlib.resources by Barry Warsaw

Talk notes thepkg/ # is a package since has __init__.py __init__.py a.py b.py data/ sample.dat You need to get data files (templates, certifs etc) from your package You do import thepkg from pathlib import Path pkg = Path.(thepkg.__file__).parent path = pkg / ‘data’ / ‘sample.dat’ Problem as __file__ not necessarily a real file on system …

Notes of Get your resources faster, with importlib.resources by Barry Warsaw Read More »

Python-efl Tutorial 2

Callback demo ”’ Abdur-Ramaan Janhangeer Updated from Jeff Hoogland’s tutos for Python3.9 and Python-elf 1.25.0 https://www.toolbox.com/tech/operating-systems/blogs/py-efl-tutorial-2-weight-hints-031215/ ”’ import efl.elementary as elm from efl.elementary.box import Box from efl.elementary.button import Button from efl.elementary.label import Label from efl.elementary.window import StandardWindow from efl.evas import EVAS_HINT_EXPAND EXPAND_BOTH = EVAS_HINT_EXPAND, EVAS_HINT_EXPAND class MainWindow(StandardWindow): def __init__(self): StandardWindow.__init__(self, “ex1”, “Good Bye Elementary”, size=(300, …

Python-efl Tutorial 2 Read More »

How to install Python-efl on Ubuntu or Linux Mint

Python-efl is the binding for EFL, an awesome and performance-obcessed set of libraries. EFL stands for Enlightment Foundation Libraries. It was started for the Enlightment desktop project and developed into a set of libraries. This tutorial shows how to install python-efl. Install Instructions First create a new folder called efl_dev mkdir efl_dev cd efl_dev Then …

How to install Python-efl on Ubuntu or Linux Mint Read More »