AskString

RoboFont Forums Bugs AskString

This topic contains 4 replies, has 3 voices, and was last updated by  JBL 8 years, 12 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1090

    JBL
    Participant

    with the following command:
    from robofab.interface.all.dialogs import AskString
    I get this traceback:
    Traceback (most recent call last):
    File “script.py”, line 21, in
    File “/Applications/Typotools/RoboFont/RoboFont.app/Contents/Resources/lib/python2.7/robofab/interface/all/dialogs.py”, line 556, in AskString
    File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/EasyDialogs.py”, line 24, in
    ImportError: cannot import name GetNewDialog

    what am I doing wrong?

    #1091

    frederik
    Keymaster

    no, robofab dialogs requires carbon see https://groups.google.com/group/robofab/browse_thread/thread/ad1eedb2f0716e71?hl=en

    A lot happened already and they will work on the next update. (this will not take that long any more, RoboFont 1.1 is already been send to the beta testers)

    #1099

    JBL
    Participant

    ah yes, I see. thanks!

    #1100

    CJ
    Participant

    @jbl Have you looked at the Dialog Kit examples on the Type Supply site:
    http://code.typesupply.com/browser/packages/dialogKit/trunk/examples/EditTextDemo.py

    I adapted the example there, calling it AskStringRF, if you would like to use it until the RoboFont update comes out:
    http://dl.dropbox.com/u/17649052/RF/askStringRF_1.5.py.zip

    Just paste the code into your script in place of askString and the code will return the variable “s”. Good luck!

    #1102

    JBL
    Participant

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.