Renamed pystuff to python

master
Yevgen Muntyan 2006-05-23 15:11:20 -05:00
parent 7b751ede2c
commit 7c2160fd80
2 changed files with 4 additions and 16 deletions

View File

@ -7,7 +7,7 @@ moopython_plugins_libdir = $(MOO_LIB_DIR)/plugins/lib
moopython_plugins_DATA = \
$(moopython)/plugins/console.py \
$(moopython)/plugins/pystuff.py
$(moopython)/plugins/python.py
moopython_plugins_lib_DATA = \
$(moopython)/plugins/pyconsole.py

View File

@ -10,15 +10,13 @@ if os.name == 'nt':
else:
PYTHON_COMMAND = 'python'
SHOW_LOG_WINDOW = False
try:
import pyconsole
have_pyconsole = True
except ImportError:
have_pyconsole = False
PLUGIN_ID = "PyStuff"
PLUGIN_ID = "Python"
class FileLine(object):
def __init__(self, filename, line):
@ -32,21 +30,14 @@ class Plugin(moo.edit.Plugin):
self.info = {
"id" : PLUGIN_ID,
"name" : "Python Stuff",
"description" : "Python stuff",
"name" : "Python",
"description" : "Python support",
"author" : "Yevgen Muntyan <muntyan@math.tamu.edu>",
"version" : "3.1415926",
"enabled" : True,
"visible" : True
}
if SHOW_LOG_WINDOW:
self.add_window_action(moo.edit.EditWindow, "ShowLogWindow",
display_name="Show Log Window",
label="Show Log Window",
callback=self.show_log_window)
self.add_ui("ToolsMenu", "ShowLogWindow")
if have_pyconsole:
self.add_window_action(moo.edit.EditWindow, "PythonConsole",
display_name="Python Console",
@ -68,9 +59,6 @@ class Plugin(moo.edit.Plugin):
moo.edit.window_set_action_langs("RunFile", "sensitive", ["python"])
self.add_ui("ToolsMenu", "RunFile")
def show_log_window(self, window):
moo.app.get_instance().show_python_console()
def show_console(self, window):
window = gtk.Window()
swin = gtk.ScrolledWindow()