Skip to content

Commit

Permalink
ENH: Create example for adding icons to the PsychoPy app
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed May 9, 2024
1 parent d4aa6ed commit 240a34c
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion psychopy_plugin_template/app/ribbon.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, parent):
self.addButton(
"exampleBtn",
label="Example button",
icon="globe",
icon="example",
tooltip="Open the documentation for psychopy-plugin-template",
callback=self.openExamplePluginDocs,
style=wx.BU_NOTEXT
Expand Down
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ ExamplePluginRibbonSection = "psychopy_plugin_template.app.ribbon:ExamplePluginR
# if you want to add a section to the PsychoPy Runner ribbon, add it here
ExamplePluginRibbonSection = "psychopy_plugin_template.app.ribbon:ExamplePluginRibbonSection"

[project.entry-points."psychopy.app.themes.icons"]
# if you want to add icons to the PsychoPy app, add them here
example = "psychopy_plugin_template.icons.example"

[tool.setuptools.package-data]
# any resources you want including in the package, add their file extensions here (e.g. "*.wav" if you want audio files)
"*" = ["*.png"]
Expand Down

0 comments on commit 240a34c

Please sign in to comment.