def toggleFrozen(editor):
    # myField = editor.currentField
    # flds = editor.note.model()['flds']
    # flds[myField]['sticky'] = not flds[myField]['sticky']
    myField = editor.currentField
    editor.web.eval("""py.run("frozen:%d");""" % myField)
    editor.loadNote()
    editor.web.eval("focusField(%d);" % myField)
Example #2
0
def toggleFrozen(editor):
    # myField = editor.currentField
    # flds = editor.note.model()['flds']
    # flds[myField]['sticky'] = not flds[myField]['sticky']
    myField = editor.currentField
    editor.web.eval("""py.run("frozen:%d");""" % myField)
    editor.loadNote()
    editor.web.eval("focusField(%d);" % myField)
Example #3
0
def resetFrozen(editor):
    myField = editor.currentField
    flds = editor.note.model()['flds']
    for n in range(len(editor.note.fields)):
        try:
            if  flds[n]['sticky']:
                flds[n]['sticky'] = not flds[n]['sticky']
        except IndexError:
            break
    editor.loadNote()
    editor.web.eval("focusField(%d);" % myField)
def resetFrozen(editor):
    myField = editor.currentField
    flds = editor.note.model()['flds']
    for n in range(len(editor.note.fields)):
        try:
            if  flds[n]['sticky']:
                flds[n]['sticky'] = not flds[n]['sticky']
        except IndexError:
            break
    editor.loadNote()
    editor.web.eval("focusField(%d);" % myField)
def onColumnCountChanged(editor, count):
    mw.pm.profile[CONF_KEY_COLUMN_COUNT] = count
    editor.loadNote()
def onColumnCountChanged(editor, count):
    mw.pm.profile[CONF_KEY_COLUMN_COUNT] = count
    editor.loadNote()
def onColumnCountChanged(editor, count):
    "Save column count to settings and re-draw with new count."
    mw.pm.profile[getKeyForContext(editor)] = count
    editor.loadNote()