B4J Question pip install - Usage

T201016

Active Member
Licensed User
Longtime User
Hi, I'm looking for help
When testing the project, I have no idea where I should place the file "win11taast.py" module
- Before its installation? I assume that pybridge is properly installed.
I will be grateful for any tips.

Use:
 

Attachments

  • Windows11Toast.zip
    171.1 KB · Views: 48
Solution
Got your code working. Few minor changes (just how I code)
You dont need pip install win11toast.py - I put it in files folder
B4X:
Private Sub ShowNotification(Title As String, Body As String, AppId As String) As ResumableSub
    wait for (Py.RunCode("toast",Array(Title,Body,AppId),File.ReadString(File.DirAssets,"win11toast.py")).Fetch) Complete (res As PyWrapper)
    Return res.value
End Sub

Didnt attempt the callback sub

Daestrum

Expert
Licensed User
Longtime User
Got your code working. Few minor changes (just how I code)
You dont need pip install win11toast.py - I put it in files folder
B4X:
Private Sub ShowNotification(Title As String, Body As String, AppId As String) As ResumableSub
    wait for (Py.RunCode("toast",Array(Title,Body,AppId),File.ReadString(File.DirAssets,"win11toast.py")).Fetch) Complete (res As PyWrapper)
    Return res.value
End Sub

Didnt attempt the callback sub
 
Upvote 1
Solution