B4J Code Snippet [PyBridge] Windows 10/11 notifications - Erel    Mar 12, 2025   (13 reactions) 162485 Based on: https://github.com/GitHub30/win11toast Many options. Install: pip install win11toast Code: Private Sub ShowNotification(Title As String, Body As String, AppId As String) As PyWrapper Dim toast As PyWrapper = Py.ImportModuleFrom("win11toast", "toast") Return toast.Call.Arg(Title).Arg(Body).ArgNamed("app_id", AppId) End Sub Private Sub Show... B4J Code Snippet [PyBridge] Visualization of hierarchical data with Plotly - Erel    Jul 29, 2025   (10 reactions) /android/forum/threads/pybridge-server-online-charts-with-plotly.167983/... B4J Tutorial [PyBridge] Accessing MTP devices - Erel    May 29, 2025   (4 reactions) 164430
MTP - Media Transfer Protocol, is an important protocol that wasn't accessible from B4J (https://www.b4x.com/android/forum/threads/copy-file-from-phone-usb-cable-to-desktop-using-b4j-code.... B4J Tutorial [PyBridge] pyvips - image manipulation library - Erel    Mar 19, 2025   (7 reactions) pyvips is a very powerful image manipulation library. It can manipulate very large images. I've created a modified "HugeImageView" based on it as an example. It can show 1-2 GB images. These are images that need special handling to draw, as the full image can't be loaded into RAM. It depends on an external library - libvips. Download and extract: https://github.com/libvips/build... B4J Code Snippet [PyBridge] Text to Speech with pyttsx3 - Erel    Mar 16, 2025   (5 reactions) https://pyttsx3.readthedocs.io/en/latest/index.html
Dependency:
pip install pyttsx3
162622
Priva... B4J Tutorial [PyBridge] Communicating with Raspberry Pi - Erel    Mar 12, 2025   (7 reactions) this console program: Sub Process_Globals Private Py As PyBridge Private ButtonPin As Int... it here: https://www.b4x.com/android/forum/threads/pybridge-lgpio-raspberry-pi-gpio.166064/#post... As PyBridge Private mqtt As MqttClient Private MqttWorking As Boolean = True End Sub Sub AppStart.../threads/pybridge-windows-10-11-notifications.166091/#post-1018409 This example can be expanded for... B4J Code Snippet [PyBridge] Few tips for library developers - Erel    Mar 10, 2025   (6 reactions) Here are a few tips I collected while writing the wrapper for Bleak (BLE). Bleak is the first non-small library written for PyBridge and it is worth going over its code. You can unzip the b4xlib to find the two classes. 1. All the Python code that is added with Py.RunCode and the other similar... there is a single PyBridge object, that is initialized in B4XMainPage. This means that by default... If End If Return msg End Sub It might be added to PyBridge at some point.... B4J Tutorial [B4X] [PyBridge] Desktop - Mobile Communication based on BLE (Bluetooth Low Energy) - Erel    Mar 9, 2025   (9 reactions) : https://www.b4x.com/android/forum/threads/pybridge-bleak-bluetooth-ble.165982 And B4J v10.2 beta #4... B4J Code Snippet [PyBridge] GeoDatapandas - powerful geospatial engine - Erel    Feb 24, 2025   (10 reactions) Just a tiny glimpse to this powerful framework: https://geopandas.org/en/stable/ pip install geopandas pip install matplotlib Probably better to install in the global Python as this is a large framework. Dim FileName As String = File.Combine(File.DirApp, "countries.zip") If File.Exists(FileName, "") = False Then Wait For (DownloadFile("https://naciscdn.org/naturale... B4J Code Snippet [PyBridge] Pygal - nice charting library - Erel    Feb 20, 2025   (14 reactions) 161924 https://www.pygal.org/en/latest/index.html This library produces interactive SVG, which can be loaded with WebView. It has many features. Small example: Dim PyGal As PyWrapper = Py.ImportModule("pygal") Dim PyGalStyle As PyWrapper = Py.ImportModule("pygal.style") Dim Chart As PyWrapper = PyGal.Run("StackedLine") _ .ArgNamed("style", PyGalStyle.... Page: 1   2   3   4   5   6   |