Comments (2)
The size of the icon should be changed from here:
hicon = LoadImage(self.hinst, icon_path, IMAGE_ICON, 0, 0, icon_flags)
The first 0
is the width in pixles, the second 0
is the height in pixels. However, it didn't worked for me so it's not a guarantee that it will work for others, but that's the place where the size should be provided.
You can see more about the parameters of the LoadImage
function here: https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-loadimagea
Edit:
After trying different things, I noticed that adding a certain flag makes the icon bigger, but I don't know if this is the intended behavior.
To achieve this import the flag:
from win32gui import NIIF_ICON_MASK
Then add it here:
Shell_NotifyIcon(NIM_MODIFY, (self.hwnd, 0, NIF_INFO, WM_USER + 20, hicon, "Balloon Tooltip", msg, 200, title, NIIF_ICON_MASK))
from windows-10-toast-notifications.
I'd like to know the answer to this too. The example image in the readme shows a larger icon, so I assume it's possible
from windows-10-toast-notifications.
Related Issues (20)
- Does this still work with Windows 11? HOT 4
- Toast-Notifications do not appear while chrome is on full screen mode. HOT 1
- How do I change the author of a notification?
- Cannot install pypiwin32 dependency on Linux HOT 1
- .show_toast() breaks PySimpleGUI and PyMsgBox
- Error in Python 3.11 HOT 16
- Maintain Notification
- Cannot install this module on python 3.12.0a2 HOT 3
- ERROR + FIX: WNDPROC return value cannot be converted to LRESULT TypeError: WPARAM is simple, so must be an int object (got NoneType)
- Is it possible to change the sound effect used, or silence it?
- Project maintenance HOT 1
- win10toast - anyways to stop or know that it has been clicked.
- arabic text
- Arabic text HOT 1
- I have a valid ICO but it wont load HOT 6
- Keep notification after excecution HOT 4
- Tkinter crash after use Toast HOT 2
- Windows 10 - Toasts stopped working HOT 8
- win10toast Breaks with pyinstaller
- Notification closing other python-based systray applications
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windows-10-toast-notifications.