-
Notifications
You must be signed in to change notification settings - Fork 15
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
New plugin: Style editor #133
Conversation
I checked this out on Windows and it worked fine, but on Mac I couldn't see the plugin at first. I tried unchecking it in the plugin manager and then rechecking it, but it won't recheck. The terminal shows this error: DEBUG:hyperspyui:Initializing plugin: <class 'hyperspyui.plugins.stylesheet.StylePlugin'>
Traceback (most recent call last):
File "/Users/thomas/Dropbox/0_Git/hyperspyUI/hyperspyui/pluginmanager.py", line 238, in load
p = self._load_if_enabled(plugin_type)
File "/Users/thomas/Dropbox/0_Git/hyperspyUI/hyperspyui/pluginmanager.py", line 230, in _load_if_enabled
p = p_type(self.ui)
File "/Users/thomas/Dropbox/0_Git/hyperspyUI/hyperspyui/plugins/stylesheet.py", line 49, in __init__
self.apply_styles()
File "/Users/thomas/Dropbox/0_Git/hyperspyUI/hyperspyui/plugins/stylesheet.py", line 64, in apply_styles
QApplication.instance().setStyleSheet(self.settings['_style'])
TypeError: setStyleSheet(self, object): argument 1 has unexpected type 'QPyNullVariant'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/thomas/Dropbox/0_Git/hyperspyUI/hyperspyui/widgets/pluginmanagerwidget.py", line 102, in setData
self.plugin_manager.enable_plugin(name, enabled)
File "/Users/thomas/Dropbox/0_Git/hyperspyUI/hyperspyui/pluginmanager.py", line 100, in enable_plugin
self.load(ptype)
File "/Users/thomas/Dropbox/0_Git/hyperspyUI/hyperspyui/pluginmanager.py", line 248, in load
self.warn(sys._getframe().f_code.co_name, p.name)
UnboundLocalError: local variable 'p' referenced before assignment |
I added a commit that should (hopefully) fix that issue. |
Any luck? :) |
Will try after dinner!
…On Thu, 20 Apr 2017 at 17:50, Vidar Tonaas Fauske ***@***.***> wrote:
Any luck? :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#133 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACmGj_1XLoUGm3STGuB10Npj9accSeG_ks5rx360gaJpZM4M-oaL>
.
|
It definitely works, see comments over at #128. |
Style editor definitely working on Mac, tested with |
Okies, merging this then. |
Adds a style editor (Settings -> Edit style).