Skip to content
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

Broken on Windows 10? #9

Open
pannal opened this issue Feb 21, 2018 · 2 comments
Open

Broken on Windows 10? #9

pannal opened this issue Feb 21, 2018 · 2 comments

Comments

@pannal
Copy link

pannal commented Feb 21, 2018

I'm getting this error when simply running the following code:

    with SysTrayIcon("1.ico", "Example tray icon") as tray:
        do_something()
Exception in thread Thread-1:
Traceback (most recent call last):
  File "c:\python27\lib\threading.py", line 810, in __bootstrap_inner
    self.run()
  File "c:\python27\lib\threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "c:\python27\lib\site-packages\infi\systray\traybar.py", line 111, in _message_loop_func
    PumpMessages()
  File "c:\python27\lib\site-packages\infi\systray\win32_adapter.py", line 188, in PumpMessages
    TranslateMessage(ctypes.byref(msg))
ArgumentError: argument 1: <type 'exceptions.TypeError'>: expected LP_MSG instance instead of pointer to MSG
@pannal
Copy link
Author

pannal commented Feb 21, 2018

Using ctypes.wintypes.MSG and ctypes.wintypes.POINT instead of your MSG() and POINT() classes, works.

@wiggin15
Copy link
Contributor

wiggin15 commented Mar 7, 2018

I could not reproduce the same issue on Windows 10, but I committed a change to use the ctypes.wintypes types. Can you please pull the latest code from the develop branch and see if the issue is resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants