"SelectGlyph" raises an error

20 views
Skip to first unread message

Bahman Eslami

unread,
Mar 22, 2012, 10:22:54 AM3/22/12
to RoboFab
I use following code in FL 5.1 in MacOSX 10.5.8 and Python 2.5, I got
no dialog box, but an error.

code:
from robofab.world import CurrentFont
from robofab.interface.all.dialogs import SelectGlyph

f = CurrentFont()
if f is not None:
print SelectGlyph(f, "select a glyph")


Output:
Traceback (most recent call last):
File "<string>", line 6, in <module>
File "/Users/Bahman/code/RoboFab/Lib/robofab/interface/all/
dialogs_default.py", line 62, in SelectGlyph
raise NotImplementedError
NotImplementedError


what's the problem?
thanks in advance,
Bahman

Erik van Blokland

unread,
Mar 22, 2012, 10:46:23 AM3/22/12
to rob...@googlegroups.com
On 22 mrt. 2012, at 15:22, Bahman Eslami wrote:

I use following code in FL 5.1 in MacOSX 10.5.8 and Python 2.5, I got
no dialog box, but an error.

what's the problem?
Too many versions and too many bugs.

I don' t have 10.5.8 and py 2.5 to test, but you could try this:

from robofab.world import CurrentFont
f = CurrentFont()
from robofab.interface.all.dialogs_legacy import SelectGlyph
SelectGlyph(f)

Just for kicks, could you run this in the Macro window as well and post the results?
from robofab.interface.all.dialogs import test
test()

Cheers!
Erik

Bahman Eslami

unread,
Mar 23, 2012, 8:33:55 PM3/23/12
to RoboFab
Hi Erik,
> I don' t have 10.5.8 and py 2.5 to test, but you could try this:
>
> from robofab.world import CurrentFont
> f = CurrentFont()
> from robofab.interface.all.dialogs_legacy import SelectGlyph
> SelectGlyph(f)

It worked, thanks! there is whole other things that raises same error,
what's the difference between your code and mine?
>
> Just for kicks, could you run this in the Macro window as well and post the results?
> from robofab.interface.all.dialogs import test
> test()
>
here is the result:

testing RoboFab Dialogs:
python version: (2, 5, 1)
platform: mac
application: fontlab
applicationVersion: None
platformVersion: 10.5
looking for module: dialogs_fontlab_legacy2
did we find it? True

Available dialogs and source:
AskString robofab.interface.all.dialogs_default
AskYesNoCancel robofab.interface.all.dialogs_fontlab_legacy2
FindGlyph robofab.interface.all.dialogs_default
GetFile robofab.interface.all.dialogs_fontlab_legacy2
GetFolder robofab.interface.all.dialogs_fontlab_legacy2
Message robofab.interface.all.dialogs_fontlab_legacy2
OneList robofab.interface.all.dialogs_default
PutFile robofab.interface.all.dialogs_fontlab_legacy2
SearchList robofab.interface.all.dialogs_default
SelectFont robofab.interface.all.dialogs_default
SelectGlyph robofab.interface.all.dialogs_default
TwoChecks robofab.interface.all.dialogs_default
TwoFields robofab.interface.all.dialogs_default
ProgressBar robofab.interface.all.dialogs_fontlab_legacy2

Regards,
Bahman
Reply all
Reply to author
Forward
0 new messages