-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MS Windows taskbar integration #508
Comments
Best example code found so far:
|
2015-09-30 07:52:34: antoine uploaded file
|
The examples in comment 4 work but this is not the interface we need. We could still use them to enhance the tray/menu classes with progress bar support, etc.
import gtk
window = gtk.Window()
window.show()
import comtypes.client as cc
cc.GetModule("TaskbarLib.tlb")
import comtypes.gen.TaskbarLib as tbl
taskbar = cc.CreateObject("{56FDF344-FD6D-11d0-958A-006097C9A090}", interface=tbl.ITaskbarList3)
taskbar.HrInit()
taskbar.SetProgressValue(window.get_window().handle,40,100) For the menus, what we want is Tasks and more specifically: AddUserTasks. > from win32com.shell import shell
> shell.CLSID_DestinationList
IID('{77F10CF0-3DB5-4966-B520-B7C54FD35ED6}') |
By the looks of things, "tasks" is not it: present even when the application is not running. Maybe Jump Lists? The only workable solutions that I can think of are:
Both of which would have all sorts of interesting interactions with window hints, size constraints, events, position... Unrelated:
import pythoncom
pythoncom.CoCreateInstance(shell.CLSID_ShellItem, None, pythoncom.CLSCTX_INPROC_SERVER, shell.IID_IShellItem) |
We now use the taskbar progress to show:
One problem is that I had to un-silence comtypes because turning off debugging triggers a strange Should we also use the icon overlay for clipboard and / or notifications? |
also make it easier to test with file input by adding a delay when parsing the data
This will do. I have also tried adding support for
But as usual,
We're not using |
Windows 7 onwards support customization of the taskbar entry for our application, we could do something with it:
Pointers:
See also #472
The text was updated successfully, but these errors were encountered: