Skip to content

Conversation

@daredoes
Copy link
Collaborator

This pull request will add a function that attempt to open a filepath and display the image using the default image editor, most likely Preview.

@jaredks
Copy link
Owner

jaredks commented Dec 10, 2018

Traceback (most recent call last):
  File "rumps/rumps.py", line 1050, in callback_
    return _call_as_function_or_method(callback, self)
  File "rumps/rumps.py", line 380, in _call_as_function_or_method
    return method(event)
  File "test.py", line 22, in show_image
    rumps.show_image('test.png')
  File "rumps/rumps.py", line 208, in show_image
    return _nsimage_window_from_file(image)
  File "rumps/rumps.py", line 273, in _nsimage_window_from_file
    window = NSImageView.alloc().init(image)
TypeError: Need 0 arguments, got 1

Are you not getting that error?

I fixed it with,

window = NSImageView.alloc().init()
window.setImage_(image)

but nothing appears to happen.

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

Successfully merging this pull request may close these issues.

2 participants