Exemple #1
0
def open_frame():
    global frame
    frame = Frame(
        "This here is my text editor. Is it not nifty? Worship the text editor!",
        app=app)
    app.link(close_frame, frame, 'close')
    app.link(close_frame, frame, 'stop')
    frame.bind(poing=poing)
Exemple #2
0
def open_frame():
    global frame
    frame = Frame("This here is my text editor. Is it not nifty? Worship the text editor!", app=app)
    app.link(close_frame, frame, 'close')
    app.link(close_frame, frame, 'stop')
    frame.bind(poing = poing)
Exemple #3
0
#!/usr/bin/env python
import sys
from Nifty import Frame, FileBuffer, ScratchBuffer

frame = Frame(
    "This here is my text editor. Is it not nifty? Worship the text editor!")
for name in sys.argv[1:]:
    frame.open_file(name)
if len(frame._pages) == 0:
    frame.open(
        ScratchBuffer('__scratch__',
                      'This buffer is for experimenting with Nifty'))

sys.stdout = frame.minibuffer
sys.stderr = frame.stderr

sys.exit(frame.run())
Exemple #4
0
#!/usr/bin/env python
import sys
from Nifty import Frame, FileBuffer, ScratchBuffer

frame = Frame("This here is my text editor. Is it not nifty? Worship the text editor!")
for name in sys.argv[1:]:
    frame.open_file(name)
if len(frame._pages) == 0:
    frame.open(ScratchBuffer('__scratch__', 'This buffer is for experimenting with Nifty'))

sys.stdout = frame.minibuffer
sys.stderr = frame.stderr

sys.exit(frame.run())