In general when you create the manually a shortcut, or edit its properties, you can assign an icon from a number of possible file types.
One package that allows you to do this programmatically is menuinst (https://github.com/ContinuumIO/menuinst)
– see the icon line in https://github.com/ContinuumIO/menuinst/wiki/Menu-Shortcut-Config-Structure for the usage. Another
is pyshortcuts which can create desktop shortcuts specifying the icon to use and once you have a desktop shortcut you can move or duplicate it to the start menu
pyshortcuts even has a wx gui which has the option to create the python code for creating the shortcut. You could use either of these packages or develop your own code based on them.
Personally I would look at using pyshortcuts – I have just tested pyshortcuts-1.3 in on Windows 10 with Python 3.7-64 and wxPython 4.0.6 and it looks to be working nicely.
On Behalf Of RASSRQ
This can plausibly be considered not to be a wxPython problem, but it arises because I've written Windows GUI apps as Python apps (scripts), so please bear with
I have several WxPython-based apps that I need to appear on the Windows-10 start screens of a client's PCs. I put them on the Windows Start menu by creating a
Shortcut whose Target is 'pythonw.exe ’ and set an icon for the shortcut. From there I can pin that app as a tile to the Start screen. All that works and the apps all show with their appropriate icon, except that the icon is relatively small within
the Start-screen tile. I would like that image in the tile to be bigger, but see no way to do that, either using WxPython, or by any method in Windows. (There appears to be a method of creating an .VisualElementsManifest.xml
file that describes a larger icon, but that doesn’t apply because the .exe file is pythonw for every app.
I suspect I’m not the only one to bump up against this, so does anyone know how to solve it?
You received this message because you are subscribed to the Google Groups “wxPython-users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.