예제 #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)
예제 #2
0
파일: pdaNifty.py 프로젝트: UIKit0/picogui
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)
예제 #3
0
파일: nifty.py 프로젝트: scanlime/picogui
#!/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())
예제 #4
0
파일: nifty.py 프로젝트: UIKit0/picogui
#!/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())