~abelianr/pyroom/plugin-system

« back to all changes in this revision

Viewing changes to PyRoom/cmdline.py

  • Committer: Adam Rooke
  • Date: 2009-02-23 00:40:55 UTC
  • Revision ID: adam.j.rooke@googlemail.com-20090223004055-t1cpyjqzc5h219tr
Proof of a plugin concept.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
from basic_edit import BasicEdit
51
51
from pyroom_error import handle_error
52
52
from preferences import PyroomConfig
53
 
 
 
53
from changed_keys import ChangedKeys
54
54
__VERSION__ = PyRoom.__VERSION__
55
55
 
56
56
pyroom_config = PyroomConfig()
71
71
 
72
72
    # Create relevant buffers for file and load them
73
73
    pyroom = BasicEdit(pyroom_config=pyroom_config)
 
74
    keys = ChangedKeys(pyroom)
74
75
    buffnum = 0
75
76
    if len(files):
76
77
        for filename in files:
78
79
            buffnum += 1
79
80
 
80
81
    pyroom.set_buffer(buffnum)
 
82
 
81
83
    pyroom.status.set_text(
82
84
        _('Welcome to Pyroom %s, type Control-H for help' % __VERSION__))
83
85
    gtk.main()