Removed pyapp.py
--- configure.ac | 1 - m4/ugly-stamp.m4 | 2 +- tests/Makefile.am | 5 ----- tests/pyapp.py.in | 50 -------------------------------------------------- 4 files changed, 1 insertions(+), 57 deletions(-) delete mode 100644 tests/pyapp.py.in
This commit is contained in:
parent
9e9f200a3a
commit
7829703b3b
@ -52,7 +52,6 @@ moo/moopython/plugins/pyproject/Makefile
|
||||
moo/mooutils/Makefile
|
||||
moo/mooutils/newgtk/Makefile
|
||||
moo/mooutils/pcre/Makefile
|
||||
tests/pyapp.py
|
||||
medit/Makefile
|
||||
po/Makefile.in
|
||||
po-gsv/Makefile.in
|
||||
|
@ -19,7 +19,7 @@ d5aeeaa47fa88297cc36e17fbbc47102 moo-lib.m4
|
||||
87cb0e8cdecb72d87d7404eb20546f26 moo-python-cross-mingw.m4
|
||||
12a5998e546fe6991597af5dc0cebda1 moo-python.m4
|
||||
9b1a1ecc886394e26ba9ff62a057d687 moo-xml.m4
|
||||
ed7ac7e4a48ca5f08a4516bd79b4ce9c configure.ac
|
||||
c22713636d2667f37b298db25d2da3db configure.ac
|
||||
])
|
||||
|
||||
AC_DEFUN([UGLY_STAMP],[])
|
||||
|
@ -25,11 +25,6 @@ endif
|
||||
|
||||
all-tests: $(EXTRA_PROGRAMS)
|
||||
|
||||
EXTRA_DIST = \
|
||||
pyapp.py.in
|
||||
|
||||
BUILT_SOURCES = pyapp.py
|
||||
|
||||
if MOO_BUILD_UTILS
|
||||
if !MOO_BUILD_EDIT
|
||||
noinst_PROGRAMS += testfileview
|
||||
|
@ -1,50 +0,0 @@
|
||||
#
|
||||
# tests/pyapp.py.in
|
||||
#
|
||||
# Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License version 2.1 as published by the Free Software Foundation.
|
||||
#
|
||||
# See COPYING file that comes with this distribution.
|
||||
#
|
||||
|
||||
import moo
|
||||
import gobject
|
||||
import sys
|
||||
|
||||
class App (moo.App):
|
||||
def __init__ (self):
|
||||
moo.App.__init__ (self)
|
||||
self.set_property ('short-name', 'pyapp')
|
||||
self.set_property ('full-name', 'PyApp')
|
||||
self.set_property ('window-policy', moo.app.APP_MANY_EDITORS | moo.app.APP_ONE_TERMINAL |
|
||||
moo.app.APP_QUIT_ON_CLOSE_ALL_WINDOWS)
|
||||
self.set_property ('run-python', False)
|
||||
|
||||
gobject.type_register (App)
|
||||
|
||||
app = App()
|
||||
try:
|
||||
file = open('@srcdir@/editor-ui.xml')
|
||||
except:
|
||||
try:
|
||||
file = open('editor-ui.xml')
|
||||
except:
|
||||
print 'could not find editor-ui.xml'
|
||||
sys.exit (1)
|
||||
|
||||
xml = app.get_ui_xml ()
|
||||
if not xml.add_ui_from_string (file.read()):
|
||||
print '%s: error' % __line__
|
||||
|
||||
app.init()
|
||||
|
||||
editor = app.get_editor ()
|
||||
win = editor.new_window ()
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
win.open (sys.argv[1])
|
||||
|
||||
app.run ()
|
Loading…
x
Reference in New Issue
Block a user