Error when "Disable action"

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Error when "Disable action"

Post by krambriw » Mon Apr 14, 2008 12:58 pm

Hi, when I disable an action, I get the following error messages:

Code: Select all

14:56:57   Traceback (most recent call last):
14:56:57     File "C:\Program\EventGhost\eg\Classes\MainFrame\__init__.py", line 806, in OnCmdDisabled
14:56:57       eg.UndoHandler.ToggleEnable(self.document)
14:56:57     File "C:\Program\EventGhost\eg\Classes\UndoHandler\ToggleEnable.py", line 31, in __init__
14:56:57       item.Enable(self.state)
14:56:57     File "C:\Program\EventGhost\eg\Classes\TreeItem.py", line 394, in Enable
14:56:57       self.icon.index if enable else self.icon.disabledIndex, 
14:56:57     File "C:\Program\EventGhost\eg\Icons.py", line 126, in __getattr__
14:56:57       result = getattr(self, "_" + name)()
14:56:57     File "C:\Program\EventGhost\eg\Icons.py", line 90, in _disabledIndex
14:56:57       image.paste(_gDisabledImage, None, _gDisabledImage)
14:56:57     File "Image.pyc", line 1074, in paste
14:56:57   ValueError: images do not match

Do I need to provide a different icon for the disabled state?

Walter

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Error when "Disable action"

Post by Bitmonster » Mon Apr 14, 2008 3:41 pm

All icons must be 16 x 16 x 24 bit.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Error when "Disable action"

Post by krambriw » Mon Apr 14, 2008 4:18 pm

Thanks, it helped !

Post Reply